diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_rust.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index fa5479d..44bc342 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -11,7 +11,7 @@ syntax.add { { pattern = { 'r#"', '"#', '\\' }, type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = "'.'", type = "string" }, - { pattern = "'%a", type = "keyword2" }, + { pattern = "'[%a_][%a%d_]*", type = "keyword2" }, { pattern = "0[oO_][0-7]+", type = "number" }, { pattern = "-?0x[%x_]+", type = "number" }, { pattern = "-?%d+_%d", type = "number" }, |