aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBen <89769190+benwalksaway@users.noreply.github.com>2022-06-12 22:37:03 +0200
committerGitHub <noreply@github.com>2022-06-12 22:37:03 +0200
commit9f99500507e7825bcad1ad301b8ebcd557805818 (patch)
tree82acc8ed183696899929f73c0e6ebf9f8102798f /plugins
parent173cac22693a824900ab5b10230544e0751e21e1 (diff)
downloadlite-xl-plugins-9f99500507e7825bcad1ad301b8ebcd557805818.tar.gz
lite-xl-plugins-9f99500507e7825bcad1ad301b8ebcd557805818.zip
language_v: handle multiline raw strings
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_v.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/language_v.lua b/plugins/language_v.lua
index f2be1a3..c212b25 100644
--- a/plugins/language_v.lua
+++ b/plugins/language_v.lua
@@ -12,8 +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 = { "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" },