diff options
-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" |