aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Larisch <benlarisch2019@gmail.com>2022-06-12 19:01:55 +0200
committerBen Larisch <benlarisch2019@gmail.com>2022-06-12 19:01:55 +0200
commit4d82ce94a37712241c0625e3e049ff8d089c6633 (patch)
tree46d2816767769daf1991224d7a7ac986408b200a
parent4efbf04628207a9c6fd9695bc276a8e706afc746 (diff)
downloadlite-xl-plugins-4d82ce94a37712241c0625e3e049ff8d089c6633.tar.gz
lite-xl-plugins-4d82ce94a37712241c0625e3e049ff8d089c6633.zip
language_v: add syntax support for raw strings
-rw-r--r--plugins/language_v.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/language_v.lua b/plugins/language_v.lua
index 46ee841..317ac0b 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 = {"normal", "string"} }, -- raw string single quotes
+ { pattern = "r()\".*\"", type = {"normal", "string"} }, -- raw string double quotes
{ pattern = "0x[%da-fA-F_]+", type = "number" },
{ pattern = "0b[01_]+", type = "number" },
{ pattern = "00[01234567_]+", type = "number" },