Merge pull request #61 from inad9300/patch-1

Update language_js.lua
This commit is contained in:
rxi 2020-05-10 13:54:45 +01:00 committed by GitHub
commit ae20c40554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 45 additions and 25 deletions

View File

@ -16,30 +16,50 @@ syntax.add {
{ pattern = "[%a_][%w_]*", type = "symbol" }, { pattern = "[%a_][%w_]*", type = "symbol" },
}, },
symbols = { symbols = {
["if"] = "keyword", ["arguments"] = "keyword2",
["then"] = "keyword", ["async"] = "keyword",
["else"] = "keyword", ["await"] = "keyword",
["do"] = "keyword", ["break"] = "keyword",
["while"] = "keyword", ["case"] = "keyword",
["for"] = "keyword", ["catch"] = "keyword",
["break"] = "keyword", ["class"] = "keyword",
["continue"] = "keyword", ["const"] = "keyword",
["return"] = "keyword", ["continue"] = "keyword",
["switch"] = "keyword", ["debugger"] = "keyword",
["case"] = "keyword", ["default"] = "keyword",
["const"] = "keyword", ["delete"] = "keyword",
["try"] = "keyword", ["do"] = "keyword",
["catch"] = "keyword", ["else"] = "keyword",
["throw"] = "keyword", ["export"] = "keyword",
["var"] = "keyword", ["extends"] = "keyword",
["let"] = "keyword", ["false"] = "literal",
["get"] = "keyword", ["finally"] = "keyword",
["set"] = "keyword", ["for"] = "keyword",
["function"] = "keyword", ["function"] = "keyword",
["new"] = "keyword", ["get"] = "keyword",
["this"] = "keyword2", ["if"] = "keyword",
["true"] = "literal", ["import"] = "keyword",
["false"] = "literal", ["in"] = "keyword",
["null"] = "literal", ["Infinity"] = "keyword2",
["instanceof"] = "keyword",
["let"] = "keyword",
["NaN"] = "keyword2",
["new"] = "keyword",
["null"] = "literal",
["return"] = "keyword",
["set"] = "keyword",
["super"] = "keyword",
["switch"] = "keyword",
["this"] = "keyword2",
["throw"] = "keyword",
["true"] = "literal",
["try"] = "keyword",
["typeof"] = "keyword",
["undefined"] = "literal",
["var"] = "keyword",
["void"] = "keyword",
["while"] = "keyword",
["with"] = "keyword",
["yield"] = "keyword",
}, },
} }