aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFrancesco <francesco.bbt@gmail.com>2021-08-18 23:11:14 +0200
committerGitHub <noreply@github.com>2021-08-18 23:11:14 +0200
commite12bb22c4fabf89fd06a7e8692099acbc10c82bc (patch)
tree0f26cd2e71dccf265831fcd297fb585d74439a80 /plugins
parent047f83e67b3b7952c2259ceddccc61c85eadd8f0 (diff)
parent10c5aef541db899c9b3e5ecf1eff0d44139256a3 (diff)
downloadlite-xl-plugins-e12bb22c4fabf89fd06a7e8692099acbc10c82bc.tar.gz
lite-xl-plugins-e12bb22c4fabf89fd06a7e8692099acbc10c82bc.zip
Merge pull request #54 from BenStigsen/patch-1
Extend language_v syntax
Diffstat (limited to 'plugins')
-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",
},
}
-