diff options
| author | Adam <adamdharrison@gmail.com> | 2021-12-06 00:17:07 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 00:17:07 -0500 |
| commit | 994c62b64a6e39defa8bffa2b706f4c6532d3c02 (patch) | |
| tree | e691f8a30d265cd02a804344e6bb5ce12b5e8aed | |
| parent | 4b3d25e15aea635a75b590bee6487231271ae7f1 (diff) | |
| parent | 4f68f7fd92025f9934d1bab74da0c306ad81a85c (diff) | |
| download | lite-xl-994c62b64a6e39defa8bffa2b706f4c6532d3c02.tar.gz lite-xl-994c62b64a6e39defa8bffa2b706f4c6532d3c02.zip | |
Merge pull request #497 from lite-xl/fix-javascript-regexp-syntax
Try to fix problem with js syntax of '/=' operator
| -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" }, |
