aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rust.lua
diff options
context:
space:
mode:
authorNightwing <jobinsjjc1492@protonmail.com>2021-12-03 20:59:48 +0900
committerNightwing <jobinsjjc1492@protonmail.com>2021-12-03 20:59:48 +0900
commitf54baa037ed026922302c17cac2748f0e0c58ef6 (patch)
treefb66e59bfedf8dad6e2e444f6d8fd098e136c3ba /plugins/language_rust.lua
parente5f8317541b8b986c45b234f58192c90434a1365 (diff)
downloadlite-xl-plugins-f54baa037ed026922302c17cac2748f0e0c58ef6.tar.gz
lite-xl-plugins-f54baa037ed026922302c17cac2748f0e0c58ef6.zip
Bug fixes
Diffstat (limited to 'plugins/language_rust.lua')
-rw-r--r--plugins/language_rust.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua
index eefc33a..3a0d6b8 100644
--- a/plugins/language_rust.lua
+++ b/plugins/language_rust.lua
@@ -11,8 +11,8 @@ syntax.add {
{ pattern = { 'r#"', '"#', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "`", "`", '\\' }, type = "string" },
- { pattern = "%'[%a]*[>%s:]", type = "keyword2"},
- { pattern = { "'", "'", '\\' }, type = "string" },
+ { pattern = "'%a*[>%s:]", type = "keyword2"},
+ { pattern = "'*'", type = "string" },
{ pattern = "0[oO_][0-7]+", type = "number" },
{ pattern = "-?0x[%x_]+", type = "number" },
{ pattern = "-?%d+_%d", type = "number" },
@@ -78,7 +78,7 @@ syntax.add {
["f128"] = "keyword2",
["String"] = "keyword2",
["char"] = "keyword2",
- ["&str"] = "keyword2",
+ ["str"] = "keyword2",
["bool"] = "keyword2",
["true"] = "literal",
["false"] = "literal",