aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Stigsen <benjamin.stigsen@gmail.com>2021-08-18 23:07:01 +0200
committerGitHub <noreply@github.com>2021-08-18 23:07:01 +0200
commit10c5aef541db899c9b3e5ecf1eff0d44139256a3 (patch)
tree0f26cd2e71dccf265831fcd297fb585d74439a80
parent047f83e67b3b7952c2259ceddccc61c85eadd8f0 (diff)
downloadlite-xl-plugins-10c5aef541db899c9b3e5ecf1eff0d44139256a3.tar.gz
lite-xl-plugins-10c5aef541db899c9b3e5ecf1eff0d44139256a3.zip
Extend language_v syntax
-rw-r--r--plugins/language_v.lua26
1 files changed, 22 insertions, 4 deletions
diff --git a/plugins/language_v.lua b/plugins/language_v.lua
index 774617a..0c1c64a 100644
--- a/plugins/language_v.lua
+++ b/plugins/language_v.lua
@@ -44,7 +44,6 @@ syntax.add {
["lock"] = "keyword",
["match"] = "keyword",
["module"] = "keyword",
- ["mut"] = "keyword2",
["or"] = "keyword",
["pub"] = "keyword",
["return"] = "keyword",
@@ -59,11 +58,30 @@ syntax.add {
["union"] = "keyword",
["unsafe"] = "keyword",
["__offsetof"] = "keyword",
-
-
+
+ ["mut"] = "keyword2",
+ ["i8"] = "keyword2",
+ ["i16"] = "keyword2",
+ ["int"] = "keyword2",
+ ["i64"] = "keyword2",
+ ["i128"] = "keyword2",
+ ["u8"] = "keyword2",
+ ["u16"] = "keyword2",
+ ["u32"] = "keyword2",
+ ["u64"] = "keyword2",
+ ["u128"] = "keyword2",
+ ["f32"] = "keyword2",
+ ["f64"] = "keyword2",
+ ["map"] = "keyword2",
+ ["string"] = "keyword2",
+ ["voidptr"] = "keyword2",
+ ["byte"] = "keyword2",
+ ["rune"] = "keyword2",
+ ["chan"] = "keyword2",
+ ["char"] = "keyword2",
+
["true"] = "literal",
["false"] = "literal",
["none"] = "literal",
},
}
-