diff options
Diffstat (limited to 'data/plugins/language_js.lua')
| -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 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" }, |
