aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_js.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/plugins/language_js.lua')
-rw-r--r--data/plugins/language_js.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua
index b811b026..3ea7a805 100644
--- a/data/plugins/language_js.lua
+++ b/data/plugins/language_js.lua
@@ -7,7 +7,7 @@ syntax.add {
comment = "//",
block_comment = { "/*", "*/" },
patterns = {
- { pattern = "//.-\n", type = "comment" },
+ { pattern = "//.*$", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '/[^= ]', '/', '\\' },type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },