diff options
author | StunxFS <56417208+StunxFS@users.noreply.github.com> | 2023-01-18 13:07:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 13:07:19 -0400 |
commit | 65155947cbd6c4cfbc88ffaee41ab8538340f6f4 (patch) | |
tree | 22b0ea8db65bf748cdb7645f76099e26ee5839f9 /plugins/language_rivet.lua | |
parent | 975243113fa52cc1f9549526f0a48d8b98179b37 (diff) | |
parent | 07f8872f485328d4429213c1e71db5c845157ac0 (diff) | |
download | lite-xl-plugins-65155947cbd6c4cfbc88ffaee41ab8538340f6f4.tar.gz lite-xl-plugins-65155947cbd6c4cfbc88ffaee41ab8538340f6f4.zip |
Merge branch 'lite-xl:master' into master
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", |