From b1eb39caa13df1f225fc6acedcfb6ab60524344e Mon Sep 17 00:00:00 2001 From: StunxFS <56417208+StunxFS@users.noreply.github.com> Date: Sat, 31 Dec 2022 20:52:28 -0400 Subject: update `language_rivet.lua` (#185) * Update language_rivet.lua * Update language_rivet.lua --- plugins/language_rivet.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/language_rivet.lua') 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", -- cgit v1.2.3