diff options
author | Jose Mendoza <56417208+StunxFS@users.noreply.github.com> | 2023-11-11 21:04:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 02:04:24 +0100 |
commit | 3cd8021ef48e4df2716b9388d179da24c523a76c (patch) | |
tree | 660dc742b017251cda9dbb9d0bd783bdd9c8a33a /plugins | |
parent | 0c0aa76327f1e2bc3eea388a764aba152e5a0bfb (diff) | |
download | lite-xl-plugins-3cd8021ef48e4df2716b9388d179da24c523a76c.tar.gz lite-xl-plugins-3cd8021ef48e4df2716b9388d179da24c523a76c.zip |
update `language_rivet.lua` (#340)
* Update manifest.json
* Update manifest.json
* Update language_rivet.lua
* fix: update language_rivet.lua
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_rivet.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/language_rivet.lua b/plugins/language_rivet.lua index b8d227c..a5837c8 100644 --- a/plugins/language_rivet.lua +++ b/plugins/language_rivet.lua @@ -30,9 +30,11 @@ syntax.add { }, {pattern = "[A-Z][%w_]*", type = "keyword2"}, -- types {pattern = "%@%s?[%a_][%w_]*", type = "literal"}, -- builtin func/var + -- `defer` modes + {pattern = "defer%s?%(%s?()[%a_][%w_]*()%s?%)", type = {"keyword", "comment", "normal"} }, {pattern = "[%a_][%w_]*%f[(]", type = "function"}, {pattern = "#%s?[%a_][%w_]*", type = "comment"}, -- if/else_if/else/endif - {pattern = "#%s?.*", type = "keyword2"}, -- attributes + {pattern = "#%s?%[.*%]", type = "keyword2"}, -- attributes {pattern = "[%a_][%w_]*", type = "symbol"} }, symbols = { @@ -47,7 +49,6 @@ syntax.add { ["defer"] = "keyword", ["else"] = "keyword", ["enum"] = "keyword", - ["errdefer"] = "keyword", ["extend"] = "keyword", ["extern"] = "keyword", ["func"] = "keyword", @@ -57,13 +58,13 @@ syntax.add { ["import"] = "keyword", ["in"] = "keyword", ["is"] = "keyword", + ["match"] = "keyword", ["mut"] = "keyword", ["or"] = "keyword", ["public"] = "keyword", ["return"] = "keyword", ["static"] = "keyword", ["struct"] = "keyword", - ["switch"] = "keyword", ["test"] = "keyword", ["throw"] = "keyword", ["trait"] = "keyword", @@ -82,16 +83,16 @@ syntax.add { ["bool"] = "keyword2", ["comptime_int"] = "keyword2", ["comptime_float"] = "keyword2", + ["int"] = "keyword2", ["int8"] = "keyword2", ["int16"] = "keyword2", ["int32"] = "keyword2", ["int64"] = "keyword2", - ["isize"] = "keyword2", + ["uint"] = "keyword2", ["uint8"] = "keyword2", ["uint16"] = "keyword2", ["uint32"] = "keyword2", ["uint64"] = "keyword2", - ["usize"] = "keyword2", ["float32"] = "keyword2", ["float64"] = "keyword2", ["rawptr"] = "keyword2", |