aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifest.json2
-rw-r--r--plugins/language_rivet.lua16
2 files changed, 9 insertions, 9 deletions
diff --git a/manifest.json b/manifest.json
index ff2df73..91f9cc0 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1092,7 +1092,7 @@
},
{
"description": "Syntax for the [Rivet](https://github.com/rivet-lang/rivet) programming language",
- "version": "0.3",
+ "version": "0.4",
"path": "plugins/language_rivet.lua",
"id": "language_rivet",
"mod_version": "3",
diff --git a/plugins/language_rivet.lua b/plugins/language_rivet.lua
index b389292..0e35971 100644
--- a/plugins/language_rivet.lua
+++ b/plugins/language_rivet.lua
@@ -1,7 +1,7 @@
-- mod-version:3
-- Syntax highlighting for the Rivet programming language.
--- by StunxFS :)
+-- By StunxFS.
local syntax = require "core.syntax"
@@ -38,7 +38,6 @@ syntax.add {
["and"] = "keyword",
["as"] = "keyword",
["break"] = "keyword",
- ["c_import"] = "keyword",
["catch"] = "keyword",
["comptime"] = "keyword",
["const"] = "keyword",
@@ -49,8 +48,6 @@ syntax.add {
["errdefer"] = "keyword",
["extend"] = "keyword",
["extern"] = "keyword",
- ["export"] = "keyword",
- ["false"] = "literal",
["func"] = "keyword",
["for"] = "keyword",
["from"] = "keyword",
@@ -59,22 +56,25 @@ syntax.add {
["in"] = "keyword",
["is"] = "keyword",
["mut"] = "keyword",
- ["none"] = "literal",
["or"] = "keyword",
["public"] = "keyword",
["return"] = "keyword",
["static"] = "keyword",
- ["self"] = "literal",
["struct"] = "keyword",
["switch"] = "keyword",
["test"] = "keyword",
["throw"] = "keyword",
["trait"] = "keyword",
- ["true"] = "literal",
- ["undefined"] = "literal",
["unsafe"] = "keyword",
["while"] = "keyword",
+ -- literals
+ ["false"] = "literal",
+ ["none"] = "literal",
+ ["self"] = "literal",
+ ["true"] = "literal",
+ ["undefined"] = "literal",
+
-- types
["never"] = "keyword2",
["bool"] = "keyword2",