diff options
author | StunxFS <56417208+StunxFS@users.noreply.github.com> | 2022-12-31 20:52:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 01:52:28 +0100 |
commit | b1eb39caa13df1f225fc6acedcfb6ab60524344e (patch) | |
tree | c1dff3927e4c25a11c1166a1627b2d465c15f6c6 /plugins/language_rivet.lua | |
parent | bf3a3b7b75efc54869df6f62363b5b94191a85cc (diff) | |
download | lite-xl-plugins-b1eb39caa13df1f225fc6acedcfb6ab60524344e.tar.gz lite-xl-plugins-b1eb39caa13df1f225fc6acedcfb6ab60524344e.zip |
update `language_rivet.lua` (#185)
* Update language_rivet.lua
* Update language_rivet.lua
Diffstat (limited to 'plugins/language_rivet.lua')
-rw-r--r-- | plugins/language_rivet.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/language_rivet.lua b/plugins/language_rivet.lua index 0416850..aceb5a1 100644 --- a/plugins/language_rivet.lua +++ b/plugins/language_rivet.lua @@ -28,11 +28,11 @@ syntax.add { type = "number" }, {pattern = "[A-Z][%w_]*", type = "keyword2"}, -- types + {pattern = "%@%s?[%a_][%w_]*", type = "literal"}, -- builtin func/var {pattern = "[%a_][%w_]*%f[(]", type = "function"}, - {pattern = "[%a_][%w_]*!%f[(]", type = "keyword2"}, -- builtin function {pattern = "[%a_][%w_]*", type = "symbol"}, {pattern = {"#%[", "%]"}, type = "literal"}, - {pattern = "#%s?[%a_][%w_]*", type = "comment"} -- #if/#elif/#else/#endif + {pattern = "#%s?[%a_][%w_]*", type = "comment"} -- if/elif/else/endif }, symbols = { ["and"] = "keyword", @@ -49,9 +49,11 @@ syntax.add { ["errdefer"] = "keyword", ["extend"] = "keyword", ["extern"] = "keyword", + ["export"] = "keyword", ["false"] = "literal", ["fn"] = "keyword", ["for"] = "keyword", + ["from"] = "keyword", ["if"] = "keyword", ["import"] = "keyword", ["in"] = "keyword", |