From 1820b319381255dd377fa9ae373a8cde43b076da Mon Sep 17 00:00:00 2001 From: ep Date: Sat, 13 Feb 2021 11:34:03 +0700 Subject: [PATCH] +js regexp pattern --- data/plugins/language_js.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index cf1b124..af65065 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -6,6 +6,7 @@ syntax.add { patterns = { { pattern = "//.-\n", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, + { pattern = { '/', '/', '\\' }, type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" },