Skip to content

Commit

Permalink
Add Javascript 'async', 'await' keywords (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnevers committed Nov 17, 2020
1 parent 0fa29a0 commit abbf911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/javascript.py
Expand Up @@ -81,7 +81,7 @@ class JavascriptLexer(RegexLexer):
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
(r'[})\].]', Punctuation),
(r'(for|in|while|do|break|return|continue|switch|case|default|if|else|'
r'throw|try|catch|finally|new|delete|typeof|instanceof|void|yield|'
r'throw|try|catch|finally|new|delete|typeof|instanceof|void|yield|await|async|'
r'this|of)\b', Keyword, 'slashstartsregex'),
(r'(var|let|with|function)\b', Keyword.Declaration, 'slashstartsregex'),
(r'(abstract|boolean|byte|char|class|const|debugger|double|enum|export|'
Expand Down

0 comments on commit abbf911

Please sign in to comment.