add `of` keyword to language_js.lua and improve js string syntax highlighting in (#186)
This commit is contained in:
parent
c7b1a6f53e
commit
bd4efa14a2
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue