diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index 7556b00b..bf899c41 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -7,7 +7,7 @@ syntax.add { patterns = { { pattern = "//.-\n", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, - { pattern = { '/%g', '/', '\\' }, type = "string" }, + { pattern = { '/[^= ]', '/', '\\' },type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" },