aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rivet.lua
diff options
context:
space:
mode:
authorJose Mendoza <56417208+StunxFS@users.noreply.github.com>2023-11-02 16:57:36 -0400
committerGitHub <noreply@github.com>2023-11-02 21:57:36 +0100
commit48f052c6195c89eda30f4ab5156545d35c4410be (patch)
tree035794cd8bfa27016795d95f855562629aaa45da /plugins/language_rivet.lua
parentd3c68c3429d2a1e5ddf98ac6d433a00e354b7255 (diff)
downloadlite-xl-plugins-48f052c6195c89eda30f4ab5156545d35c4410be.tar.gz
lite-xl-plugins-48f052c6195c89eda30f4ab5156545d35c4410be.zip
Update language_rivet.lua (#330)
* Update language_rivet.lua * Update manifest.json * Update language_rivet.lua
Diffstat (limited to 'plugins/language_rivet.lua')
-rw-r--r--plugins/language_rivet.lua16
1 files changed, 8 insertions, 8 deletions
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",