aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/language_v.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/plugins/language_v.lua b/plugins/language_v.lua
index 18191b6..e27bbfc 100644
--- a/plugins/language_v.lua
+++ b/plugins/language_v.lua
@@ -21,6 +21,8 @@ syntax.add {
{ pattern = "%:%=", type = "operator" },
{ pattern = "%.%.%.?", type = "operator" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
+ { pattern = "%$%s?[%a_][%w_]*", type = "keyword2" },
+ { pattern = "%@%s?[%a_][%w_]*", type = "keyword2" },
},
symbols = {
["as"] = "keyword",
@@ -32,7 +34,6 @@ syntax.add {
["continue"] = "keyword",
["defer"] = "keyword",
["else"] = "keyword",
- ["embed"] = "keyword",
["enum"] = "keyword",
["fn"] = "keyword",
["for"] = "keyword",
@@ -43,9 +44,11 @@ syntax.add {
["in"] = "keyword",
["interface"] = "keyword",
["is"] = "keyword",
+ ["isreftype"] = "keyword",
["lock"] = "keyword",
["match"] = "keyword",
["module"] = "keyword",
+ ["mut"] = "keyword",
["or"] = "keyword",
["pub"] = "keyword",
["return"] = "keyword",
@@ -60,9 +63,8 @@ syntax.add {
["union"] = "keyword",
["unsafe"] = "keyword",
["__offsetof"] = "keyword",
-
+
["bool"] = "keyword2",
- ["mut"] = "keyword2",
["i8"] = "keyword2",
["i16"] = "keyword2",
["int"] = "keyword2",
@@ -75,14 +77,15 @@ syntax.add {
["u128"] = "keyword2",
["f32"] = "keyword2",
["f64"] = "keyword2",
- ["map"] = "keyword2",
- ["string"] = "keyword2",
- ["voidptr"] = "keyword2",
["byte"] = "keyword2",
+ ["char"] = "keyword2",
["rune"] = "keyword2",
["chan"] = "keyword2",
- ["char"] = "keyword2",
-
+ ["string"] = "keyword2",
+ ["map"] = "keyword2",
+ ["voidptr"] = "keyword2",
+ ["thread"] = "keyword2",
+
["true"] = "literal",
["false"] = "literal",
["none"] = "literal",