aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",