aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStunxFS <56417208+StunxFS@users.noreply.github.com>2023-01-19 10:24:31 -0400
committerGitHub <noreply@github.com>2023-01-19 10:24:31 -0400
commit80c40174fbe7cef9dcb32cf3733d69fc504ef0d2 (patch)
tree1e78d3611e995fd8a806edbe866d09bdbfec13e6 /plugins
parent3739a69e500dfde13bb71457ec6213fda1179bc7 (diff)
downloadlite-xl-plugins-80c40174fbe7cef9dcb32cf3733d69fc504ef0d2.tar.gz
lite-xl-plugins-80c40174fbe7cef9dcb32cf3733d69fc504ef0d2.zip
Update language_rivet.lua
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_rivet.lua34
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",