From 80c40174fbe7cef9dcb32cf3733d69fc504ef0d2 Mon Sep 17 00:00:00 2001 From: StunxFS <56417208+StunxFS@users.noreply.github.com> Date: Thu, 19 Jan 2023 10:24:31 -0400 Subject: Update language_rivet.lua --- plugins/language_rivet.lua | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'plugins/language_rivet.lua') diff --git a/plugins/language_rivet.lua b/plugins/language_rivet.lua index aceb5a1..cbd6bde 100644 --- a/plugins/language_rivet.lua +++ b/plugins/language_rivet.lua @@ -35,6 +35,7 @@ syntax.add { {pattern = "#%s?[%a_][%w_]*", type = "comment"} -- if/elif/else/endif }, symbols = { + ["alias"] = "keyword", ["and"] = "keyword", ["as"] = "keyword", ["base"] = "literal", @@ -51,19 +52,17 @@ syntax.add { ["extern"] = "keyword", ["export"] = "keyword", ["false"] = "literal", - ["fn"] = "keyword", + ["func"] = "keyword", ["for"] = "keyword", ["from"] = "keyword", ["if"] = "keyword", ["import"] = "keyword", ["in"] = "keyword", ["is"] = "keyword", - ["let"] = "keyword", ["mut"] = "keyword", ["nil"] = "literal", ["or"] = "keyword", - ["pub"] = "keyword", - ["prot"] = "keyword", + ["public"] = "keyword", ["return"] = "keyword", ["self"] = "literal", ["struct"] = "keyword", @@ -71,26 +70,29 @@ syntax.add { ["test"] = "keyword", ["trait"] = "keyword", ["true"] = "literal", - ["type"] = "keyword", ["unsafe"] = "keyword", + ["var"] = "keyword", ["while"] = "keyword", -- types ["never"] = "keyword2", - ["void"] = "keyword2", ["bool"] = "keyword2", - ["i8"] = "keyword2", - ["i16"] = "keyword2", - ["i32"] = "keyword2", - ["i64"] = "keyword2", + ["comptime_int"] = "keyword2", + ["comptime_float"] = "keyword2", + ["int8"] = "keyword2", + ["int16"] = "keyword2", + ["int32"] = "keyword2", + ["int64"] = "keyword2", ["isize"] = "keyword2", - ["u8"] = "keyword2", - ["u16"] = "keyword2", - ["u32"] = "keyword2", - ["u64"] = "keyword2", + ["uint8"] = "keyword2", + ["uint16"] = "keyword2", + ["uint32"] = "keyword2", + ["uint64"] = "keyword2", ["usize"] = "keyword2", - ["f32"] = "keyword2", - ["f64"] = "keyword2", + ["float32"] = "keyword2", + ["float64"] = "keyword2", + ["anyptr"] = "keyword2", + ["mut_anyptr"] = "keyword2", ["rune"] = "keyword2", ["string"] = "keyword2", ["Base"] = "keyword2", -- cgit v1.2.3