diff options
author | Benjamin Stigsen <benjamin.stigsen@gmail.com> | 2021-08-18 23:07:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 23:07:01 +0200 |
commit | 10c5aef541db899c9b3e5ecf1eff0d44139256a3 (patch) | |
tree | 0f26cd2e71dccf265831fcd297fb585d74439a80 /plugins/language_v.lua | |
parent | 047f83e67b3b7952c2259ceddccc61c85eadd8f0 (diff) | |
download | lite-xl-plugins-10c5aef541db899c9b3e5ecf1eff0d44139256a3.tar.gz lite-xl-plugins-10c5aef541db899c9b3e5ecf1eff0d44139256a3.zip |
Extend language_v syntax
Diffstat (limited to 'plugins/language_v.lua')
-rw-r--r-- | plugins/language_v.lua | 26 |
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", }, } - |