diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index e78729a..f66a34a 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -16,30 +16,48 @@ syntax.add { { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { - ["if"] = "keyword", - ["then"] = "keyword", - ["else"] = "keyword", - ["do"] = "keyword", - ["while"] = "keyword", - ["for"] = "keyword", - ["break"] = "keyword", - ["continue"] = "keyword", - ["return"] = "keyword", - ["switch"] = "keyword", - ["case"] = "keyword", - ["const"] = "keyword", - ["try"] = "keyword", - ["catch"] = "keyword", - ["throw"] = "keyword", - ["var"] = "keyword", - ["let"] = "keyword", - ["get"] = "keyword", - ["set"] = "keyword", - ["function"] = "keyword", - ["new"] = "keyword", - ["this"] = "keyword2", - ["true"] = "literal", - ["false"] = "literal", - ["null"] = "literal", + ["arguments"] = "keyword2", + ["async"] = "keyword", + ["await"] = "keyword", + ["break"] = "keyword", + ["case"] = "keyword", + ["catch"] = "keyword", + ["class"] = "keyword", + ["const"] = "keyword", + ["continue"] = "keyword", + ["debugger"] = "keyword", + ["default"] = "keyword", + ["delete"] = "keyword", + ["do"] = "keyword", + ["else"] = "keyword", + ["export"] = "keyword", + ["extends"] = "keyword", + ["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", + ["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", }, }