aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rivet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/language_rivet.lua')
-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",