aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rust.lua
diff options
context:
space:
mode:
authorNightwing <jobinsjjc1492@protonmail.com>2021-12-03 21:03:50 +0900
committerNightwing <jobinsjjc1492@protonmail.com>2021-12-03 21:03:50 +0900
commit2fa38447cfe056be3c36a0c51800e788890edb08 (patch)
tree4b75c395b82c7b93d95d75f203dc62e2d8cd39c8 /plugins/language_rust.lua
parentb8ddda0863d7be2922c43741cff456a29d8862d5 (diff)
downloadlite-xl-plugins-2fa38447cfe056be3c36a0c51800e788890edb08.tar.gz
lite-xl-plugins-2fa38447cfe056be3c36a0c51800e788890edb08.zip
OOps my bad
Diffstat (limited to 'plugins/language_rust.lua')
-rw-r--r--plugins/language_rust.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua
index 3a0d6b8..3732fef 100644
--- a/plugins/language_rust.lua
+++ b/plugins/language_rust.lua
@@ -10,9 +10,8 @@ syntax.add {
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { 'r#"', '"#', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
- { pattern = { "`", "`", '\\' }, type = "string" },
- { pattern = "'%a*[>%s:]", type = "keyword2"},
- { pattern = "'*'", type = "string" },
+ { pattern = "'.'", type = "string" },
+ { pattern = "'%a", type = "keyword2" },
{ pattern = "0[oO_][0-7]+", type = "number" },
{ pattern = "-?0x[%x_]+", type = "number" },
{ pattern = "-?%d+_%d", type = "number" },