diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
commit | 5f3db3a36610366e12ba14cd688d3d259917f33c (patch) | |
tree | 0f7321d8a492429df8a05581d3b00fbe8d7bba96 /pygments/lexers/javascript.py | |
parent | 41f25b1e6aa8d17794b0156fe133733d4a515ff8 (diff) | |
download | pygments-git-5f3db3a36610366e12ba14cd688d3d259917f33c.tar.gz |
Fix various issues found by make check.
Diffstat (limited to 'pygments/lexers/javascript.py')
-rw-r--r-- | pygments/lexers/javascript.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py index 2f9b9b1c..a06272b4 100644 --- a/pygments/lexers/javascript.py +++ b/pygments/lexers/javascript.py @@ -486,8 +486,10 @@ class TypeScriptLexer(RegexLexer): (r'(for|in|while|do|break|return|continue|switch|case|default|if|else|' r'throw|try|catch|finally|new|delete|typeof|instanceof|void|of|' r'this|async|await|debugger|yield|abstract|static|import|export|' - r'implements|super|extends|private|protected|public|readonly)\b', Keyword, 'slashstartsregex'), - (r'(var|let|const|with|function|class|type|enum|interface)\b', Keyword.Declaration, 'slashstartsregex'), + r'implements|super|extends|private|protected|public|readonly)\b', + Keyword, 'slashstartsregex'), + (r'(var|let|const|with|function|class|type|enum|interface)\b', + Keyword.Declaration, 'slashstartsregex'), (r'(boolean|byte|char|double|final|float|goto|int|long|native|' r'package|short|synchronized|throws|transient|volatile)\b', Keyword.Reserved), (r'(true|false|null|NaN|Infinity|undefined)\b', Keyword.Constant), |