add of keyword to language_js.lua and improve js string syntax highlighting in (#186)

This commit is contained in:
Cukmekerb
2021-05-17 08:56:21 +02:00
committed by GitHub
parent c7b1a6f53e
commit bd4efa14a2
+2 -1
View File
@@ -7,7 +7,7 @@ syntax.add {
patterns = {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '/', '/', '\\' }, type = "string" },
{ pattern = { '/%g', '/', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = { "`", "`", '\\' }, type = "string" },
@@ -41,6 +41,7 @@ syntax.add {
["if"] = "keyword",
["import"] = "keyword",
["in"] = "keyword",
["of"] = "keyword",
["instanceof"] = "keyword",
["let"] = "keyword",
["new"] = "keyword",