diff options
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), |