From 2b675f545867bc7d3a760017d82cd7750f2035e1 Mon Sep 17 00:00:00 2001 From: Jose Mendoza <56417208+StunxFS@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:42:52 -0400 Subject: update `language_rivet.lua` (#332) * Update language_rivet.lua * Update manifest.json --- plugins/language_rivet.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/language_rivet.lua') 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" -- cgit v1.2.3