diff options
author | Adam <adamdharrison@gmail.com> | 2023-01-19 10:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 10:16:23 -0500 |
commit | 28c81e4e2a7a5c2e510ad161791a5c211f7b1a62 (patch) | |
tree | 1e78d3611e995fd8a806edbe866d09bdbfec13e6 | |
parent | 718cf5a1a6f4417ffe39c9de6b465ceaf7bed2f1 (diff) | |
parent | 80c40174fbe7cef9dcb32cf3733d69fc504ef0d2 (diff) | |
download | lite-xl-plugins-28c81e4e2a7a5c2e510ad161791a5c211f7b1a62.tar.gz lite-xl-plugins-28c81e4e2a7a5c2e510ad161791a5c211f7b1a62.zip |
Merge pull request #200 from StunxFS/StunxFS-patch-1
update language_rivet.lua
-rw-r--r-- | plugins/language_rivet.lua | 34 |
1 files changed, 18 insertions, 16 deletions
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", |