diff options
author | StunxFS <56417208+StunxFS@users.noreply.github.com> | 2022-05-20 11:43:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 11:43:22 -0400 |
commit | 1bcccfad21f15ce61be4924305f707bd8f27251d (patch) | |
tree | c2e1019b88915f9b2aaee7f7c764b5e2c778180d /plugins/language_v.lua | |
parent | 63c79236aa3605fdad21fde345d2b9def659e777 (diff) | |
download | lite-xl-plugins-1bcccfad21f15ce61be4924305f707bd8f27251d.tar.gz lite-xl-plugins-1bcccfad21f15ce61be4924305f707bd8f27251d.zip |
Update language_v.lua
Diffstat (limited to 'plugins/language_v.lua')
-rw-r--r-- | plugins/language_v.lua | 19 |
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", |