diff options
author | Nightwing <jobinsjjc1492@protonmail.com> | 2021-12-03 20:59:48 +0900 |
---|---|---|
committer | Nightwing <jobinsjjc1492@protonmail.com> | 2021-12-03 20:59:48 +0900 |
commit | f54baa037ed026922302c17cac2748f0e0c58ef6 (patch) | |
tree | fb66e59bfedf8dad6e2e444f6d8fd098e136c3ba /plugins/language_rust.lua | |
parent | e5f8317541b8b986c45b234f58192c90434a1365 (diff) | |
download | lite-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.lua | 6 |
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", |