diff options
author | Ben Larisch <benlarisch2019@gmail.com> | 2022-06-12 22:45:29 +0200 |
---|---|---|
committer | Guldoman <giulio.lettieri@gmail.com> | 2022-06-12 22:45:29 +0200 |
commit | d8a214d6d1320f9ef7519617a840a68d133e1e3e (patch) | |
tree | da43fca320a404dda44450b601c180a4ef2afba4 /plugins/language_v.lua | |
parent | 687d17addfcf5be387d6eefb4e81094eb3d5b368 (diff) | |
download | lite-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.lua | 2 |
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" }, |