From 896e40588411d758b8060ce2fae28ce1649c88d4 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Tue, 22 Aug 2023 23:19:32 +0200 Subject: Add `block_comment` to `language_rust` (#281) --- manifest.json | 2 +- plugins/language_rust.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c520820..319cbb3 100644 --- a/manifest.json +++ b/manifest.json @@ -827,7 +827,7 @@ }, { "description": "Syntax for the [Rust](https://rust-lang.org/) programming language", - "version": "0.2", + "version": "0.3", "path": "plugins/language_rust.lua", "id": "language_rust", "mod_version": "3" diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index 44bc342..09e75ba 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -5,6 +5,7 @@ syntax.add { name = "Rust", files = { "%.rs$" }, comment = "//", + block_comment = { "/*", "*/" }, patterns = { { pattern = "//.-\n", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, -- cgit v1.2.3