diff options
author | Jose Mendoza <56417208+StunxFS@users.noreply.github.com> | 2023-11-02 16:57:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 21:57:36 +0100 |
commit | 48f052c6195c89eda30f4ab5156545d35c4410be (patch) | |
tree | 035794cd8bfa27016795d95f855562629aaa45da | |
parent | d3c68c3429d2a1e5ddf98ac6d433a00e354b7255 (diff) | |
download | lite-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
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | plugins/language_rivet.lua | 16 |
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", |