diff options
author | Jose Mendoza <56417208+StunxFS@users.noreply.github.com> | 2023-11-06 08:42:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 13:42:52 +0100 |
commit | 2b675f545867bc7d3a760017d82cd7750f2035e1 (patch) | |
tree | ec7fd8fe46f1a9a705110e1d9f6ec07ea9e37eee | |
parent | 48f052c6195c89eda30f4ab5156545d35c4410be (diff) | |
download | lite-xl-plugins-2b675f545867bc7d3a760017d82cd7750f2035e1.tar.gz lite-xl-plugins-2b675f545867bc7d3a760017d82cd7750f2035e1.zip |
update `language_rivet.lua` (#332)
* Update language_rivet.lua
* Update manifest.json
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | plugins/language_rivet.lua | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/manifest.json b/manifest.json index 91f9cc0..7e8ed5b 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.4", + "version": "0.4.1", "path": "plugins/language_rivet.lua", "id": "language_rivet", "mod_version": "3", 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" |