From 29e90f290416e85765d0abda6daead452e853ae1 Mon Sep 17 00:00:00 2001 From: Nightwing Date: Wed, 1 Dec 2021 00:18:43 +0900 Subject: Added support for raw string --- plugins/language_rust.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/language_rust.lua') diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index a8dc017..40aeb5f 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -8,6 +8,7 @@ syntax.add { patterns = { { pattern = "//.-\n", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, + { pattern = { 'r#"', '"#', '\\' }, type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" }, { pattern = "0[oO_][0-7]+", type = "number" }, -- cgit v1.2.3