aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers')
-rw-r--r--lua/lexers/javascript.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/lua/lexers/javascript.lua b/lua/lexers/javascript.lua
index ccb102d..5366298 100644
--- a/lua/lexers/javascript.lua
+++ b/lua/lexers/javascript.lua
@@ -29,14 +29,15 @@ local number = token(l.NUMBER, l.float + l.integer)
-- Keywords.
local keyword = token(l.KEYWORD, word_match{
- 'abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class',
- 'const', 'continue', 'debugger', 'default', 'delete', 'do', 'double', 'else',
- 'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for',
- 'function', 'get', 'goto', 'if', 'implements', 'import', 'in', 'instanceof',
- 'int', 'interface', 'let', 'long', 'native', 'new', 'null', 'of', 'package',
- 'private', 'protected', 'public', 'return', 'set', 'short', 'static', 'super',
- 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true',
- 'try', 'typeof', 'var', 'void', 'volatile', 'while', 'with', 'yield'
+ 'abstract', 'async', 'await', 'boolean', 'break', 'byte', 'case', 'catch',
+ 'char', 'class', 'const', 'continue', 'debugger', 'default', 'delete',
+ 'do', 'double', 'else', 'enum', 'export', 'extends', 'false', 'final',
+ 'finally', 'float', 'for', 'function', 'get', 'goto', 'if', 'implements',
+ 'import', 'in', 'instanceof', 'int', 'interface', 'let', 'long', 'native',
+ 'new', 'null', 'of', 'package', 'private', 'protected', 'public', 'return',
+ 'set', 'short', 'static', 'super', 'switch', 'synchronized', 'this',
+ 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void',
+ 'volatile', 'while', 'with', 'yield'
})
-- Identifiers.