aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2022-06-12 22:43:08 +0200
committerGitHub <noreply@github.com>2022-06-12 22:43:08 +0200
commit13216c65a24d9c4c014c8cfefb22dbaa01bea5e8 (patch)
tree790104a07b28bebbeb0b7130243283106dcd15c7
parent4efbf04628207a9c6fd9695bc276a8e706afc746 (diff)
parenta6676d72a8728ca4d7e63555591a0e2d97516312 (diff)
downloadlite-xl-plugins-13216c65a24d9c4c014c8cfefb22dbaa01bea5e8.tar.gz
lite-xl-plugins-13216c65a24d9c4c014c8cfefb22dbaa01bea5e8.zip
Merge pull request #101 from benwalksaway/add_raw_string_support
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..4afd3fd 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" },