aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_js.lua
diff options
context:
space:
mode:
authorNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
committerNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
commit030dcc1e62ff235271ee2dd84f07313a2bbf9574 (patch)
tree8c1f1bb9f64b1424235adf682b31830d0cdf9b0b /data/plugins/language_js.lua
parente646f2fb28b24bae5d13994b14b75252718a6ccd (diff)
downloadlite-xl-030dcc1e62ff235271ee2dd84f07313a2bbf9574.tar.gz
lite-xl-030dcc1e62ff235271ee2dd84f07313a2bbf9574.zip
[chore]: Update syntax
Harmonizing the syntax files Now inline comment are a single string instead of a table of strings. -(language_c): Removed whitespaces breaking indent -(language_html): Removed trailing whitespace
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" },