aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_rivet.lua
diff options
context:
space:
mode:
authorJose Mendoza <56417208+StunxFS@users.noreply.github.com>2023-11-06 08:42:52 -0400
committerGitHub <noreply@github.com>2023-11-06 13:42:52 +0100
commit2b675f545867bc7d3a760017d82cd7750f2035e1 (patch)
treeec7fd8fe46f1a9a705110e1d9f6ec07ea9e37eee /plugins/language_rivet.lua
parent48f052c6195c89eda30f4ab5156545d35c4410be (diff)
downloadlite-xl-plugins-2b675f545867bc7d3a760017d82cd7750f2035e1.tar.gz
lite-xl-plugins-2b675f545867bc7d3a760017d82cd7750f2035e1.zip
update `language_rivet.lua` (#332)
* Update language_rivet.lua * Update manifest.json
Diffstat (limited to 'plugins/language_rivet.lua')
-rw-r--r--plugins/language_rivet.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/language_rivet.lua b/plugins/language_rivet.lua
index 0e35971..028b033 100644
--- a/plugins/language_rivet.lua
+++ b/plugins/language_rivet.lua
@@ -1,7 +1,8 @@
-- mod-version:3
-- Syntax highlighting for the Rivet programming language.
--- By StunxFS.
+-- This plugin is always updated to the latest Rivet syntax.
+-- By StunxFS =).
local syntax = require "core.syntax"
@@ -31,6 +32,7 @@ syntax.add {
{pattern = "%@%s?[%a_][%w_]*", type = "literal"}, -- builtin func/var
{pattern = "[%a_][%w_]*%f[(]", type = "function"},
{pattern = "#%s?[%a_][%w_]*", type = "comment"}, -- if/else_if/else/endif
+ {pattern = "#%s?.*", type = "comment"}, -- attributes
{pattern = "[%a_][%w_]*", type = "symbol"}
},
symbols = {
@@ -92,8 +94,7 @@ syntax.add {
["usize"] = "keyword2",
["float32"] = "keyword2",
["float64"] = "keyword2",
- ["anyptr"] = "keyword2",
- ["mut_anyptr"] = "keyword2",
+ ["rawptr"] = "keyword2",
["rune"] = "keyword2",
["string"] = "keyword2",
["Self"] = "keyword2"