From d8a214d6d1320f9ef7519617a840a68d133e1e3e Mon Sep 17 00:00:00 2001 From: Ben Larisch Date: Sun, 12 Jun 2022 22:45:29 +0200 Subject: language_v: add syntax support for raw strings --- plugins/language_v.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/language_v.lua b/plugins/language_v.lua index 676d9d7..d5b9764 100644 --- a/plugins/language_v.lua +++ b/plugins/language_v.lua @@ -12,6 +12,8 @@ syntax.add { { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" }, + { pattern = { "r'", "'" }, type = "string" }, -- raw string single quotes + { pattern = { 'r"', '"' }, type = "string" }, -- raw string double quotes { pattern = "0x[%da-fA-F_]+", type = "number" }, { pattern = "0b[01_]+", type = "number" }, { pattern = "00[01234567_]+", type = "number" }, -- cgit v1.2.3