diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py index a7019ba487..4af7216af6 100644 --- a/pygments/lexers/javascript.py +++ b/pygments/lexers/javascript.py @@ -491,7 +491,7 @@ 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|yield|extends|implements|private|protected|public|' - r'abstract|static|super|import|export')\b', Keyword, 'slashstartsregex'), + r'abstract|static|super|import|export)\b', Keyword, 'slashstartsregex'), (r'(var|let|const|with|function|class|interface|type|enum)\b', Keyword.Declaration, 'slashstartsregex'), (r'(boolean|byte|char|double|final|float|goto|int|long|' r'native|package|short|synchronized|throws|transient|volatile)\b', Keyword.Reserved),