From f54baa037ed026922302c17cac2748f0e0c58ef6 Mon Sep 17 00:00:00 2001 From: Nightwing Date: Fri, 3 Dec 2021 20:59:48 +0900 Subject: Bug fixes --- plugins/language_rust.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/language_rust.lua') diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index eefc33a..3a0d6b8 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -11,8 +11,8 @@ syntax.add { { pattern = { 'r#"', '"#', '\\' }, type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" }, - { pattern = "%'[%a]*[>%s:]", type = "keyword2"}, - { pattern = { "'", "'", '\\' }, type = "string" }, + { pattern = "'%a*[>%s:]", type = "keyword2"}, + { pattern = "'*'", type = "string" }, { pattern = "0[oO_][0-7]+", type = "number" }, { pattern = "-?0x[%x_]+", type = "number" }, { pattern = "-?%d+_%d", type = "number" }, @@ -78,7 +78,7 @@ syntax.add { ["f128"] = "keyword2", ["String"] = "keyword2", ["char"] = "keyword2", - ["&str"] = "keyword2", + ["str"] = "keyword2", ["bool"] = "keyword2", ["true"] = "literal", ["false"] = "literal", -- cgit v1.2.3