aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorNightwing <jobinsjjc1492@protonmail.com>2021-12-01 00:18:43 +0900
committerNightwing <jobinsjjc1492@protonmail.com>2021-12-01 00:18:43 +0900
commit29e90f290416e85765d0abda6daead452e853ae1 (patch)
treebcca640b39de8edf98f00a039a29ed03d1b69ea9 /plugins
parent4634f696dfba08be04777488716e19d51f667a66 (diff)
downloadlite-xl-plugins-29e90f290416e85765d0abda6daead452e853ae1.tar.gz
lite-xl-plugins-29e90f290416e85765d0abda6daead452e853ae1.zip
Added support for raw string
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_rust.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua
index a8dc017..40aeb5f 100644
--- a/plugins/language_rust.lua
+++ b/plugins/language_rust.lua
@@ -8,6 +8,7 @@ syntax.add {
patterns = {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
+ { pattern = { 'r#"', '"#', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "`", "`", '\\' }, type = "string" },
{ pattern = "0[oO_][0-7]+", type = "number" },