From 23cf193026014a9d720e9690979299eb513f980e Mon Sep 17 00:00:00 2001 From: rxi Date: Tue, 12 May 2020 10:12:49 +0100 Subject: [PATCH] Fixed lua's multi-line comment syntax pattern Resolves #86 Resolves #87 --- data/plugins/language_lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/language_lua.lua b/data/plugins/language_lua.lua index bf5b64d..79e2fce 100644 --- a/data/plugins/language_lua.lua +++ b/data/plugins/language_lua.lua @@ -7,7 +7,7 @@ syntax.add { { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "%[%[", "%]%]" }, type = "string" }, - { pattern = { "--%[%[", "%]%]"}, type = "comment" }, + { pattern = { "%-%-%[%[", "%]%]"}, type = "comment" }, { pattern = "%-%-.-\n", type = "comment" }, { pattern = "-?0x%x+", type = "number" }, { pattern = "-?%d+[%d%.eE]*", type = "number" },