aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_v.lua
diff options
context:
space:
mode:
authorBen Larisch <benlarisch2019@gmail.com>2022-06-12 22:45:29 +0200
committerGuldoman <giulio.lettieri@gmail.com>2022-06-12 22:45:29 +0200
commitd8a214d6d1320f9ef7519617a840a68d133e1e3e (patch)
treeda43fca320a404dda44450b601c180a4ef2afba4 /plugins/language_v.lua
parent687d17addfcf5be387d6eefb4e81094eb3d5b368 (diff)
downloadlite-xl-plugins-d8a214d6d1320f9ef7519617a840a68d133e1e3e.tar.gz
lite-xl-plugins-d8a214d6d1320f9ef7519617a840a68d133e1e3e.zip
language_v: add syntax support for raw strings
Diffstat (limited to 'plugins/language_v.lua')
-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 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" },