aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2022-05-20 17:49:25 +0200
committerGitHub <noreply@github.com>2022-05-20 17:49:25 +0200
commit90d3d95b868498d740c1e6dbed15d211d2a24d88 (patch)
tree00e7d45b3202518ce7609c2670f56044f32b0da3 /plugins
parent790d32f28787d53914d396e6dcde878fe9c9b9da (diff)
parent1bcccfad21f15ce61be4924305f707bd8f27251d (diff)
downloadlite-xl-plugins-90d3d95b868498d740c1e6dbed15d211d2a24d88.tar.gz
lite-xl-plugins-90d3d95b868498d740c1e6dbed15d211d2a24d88.zip
Merge pull request #92 from StunxFS/lang_v
update `language_v.lua`
Diffstat (limited to 'plugins')
-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",