Update language_js.lua

This commit is contained in:
Daniel M 2020-05-10 10:51:45 +02:00 committed by GitHub
parent 143f8867a1
commit 3974971ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 25 deletions

View File

@ -16,30 +16,48 @@ 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",
["while"] = "keyword",
["for"] = "keyword",
["break"] = "keyword", ["break"] = "keyword",
["continue"] = "keyword",
["return"] = "keyword",
["switch"] = "keyword",
["case"] = "keyword", ["case"] = "keyword",
["const"] = "keyword",
["try"] = "keyword",
["catch"] = "keyword", ["catch"] = "keyword",
["throw"] = "keyword", ["class"] = "keyword",
["var"] = "keyword", ["const"] = "keyword",
["let"] = "keyword", ["continue"] = "keyword",
["get"] = "keyword", ["debugger"] = "keyword",
["set"] = "keyword", ["default"] = "keyword",
["function"] = "keyword", ["delete"] = "keyword",
["new"] = "keyword", ["do"] = "keyword",
["this"] = "keyword2", ["else"] = "keyword",
["true"] = "literal", ["export"] = "keyword",
["extends"] = "keyword",
["false"] = "literal", ["false"] = "literal",
["finally"] = "keyword",
["for"] = "keyword",
["function"] = "keyword",
["if"] = "keyword",
["import"] = "keyword",
["in"] = "keyword",
["Infinity"] = "keyword2",
["instanceof"] = "keyword",
["let"] = "keyword",
["NaN"] = "keyword2",
["new"] = "keyword",
["null"] = "literal", ["null"] = "literal",
["return"] = "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",
}, },
} }