From 36b573ad416f18e14f85d69cd5acf431b33fd48a Mon Sep 17 00:00:00 2001 From: Delapouite Date: Thu, 29 Mar 2018 11:04:03 +0200 Subject: lexers: add async/await keywords to javascript --- lua/lexers/javascript.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lua/lexers/javascript.lua') 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. -- cgit v1.2.3