diff options
| -rw-r--r-- | data/plugins/language_js.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index d9515d52..94ab8499 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -8,7 +8,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" }, |
