summaryrefslogtreecommitdiff
path: root/pygments/lexers/javascript.py
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2019-05-18 13:56:28 +0200
committerMatth?us G. Chajdas <dev@anteru.net>2019-05-18 13:56:28 +0200
commit1a2be551606e6ac32b4bfa0cb45e442aac9275e9 (patch)
tree7a42cddd22c2ca0f0c41b6232d85e74c760aeb4f /pygments/lexers/javascript.py
parent31c172921810901d90d84684b59a4a1d55cd8c84 (diff)
downloadpygments-git-1a2be551606e6ac32b4bfa0cb45e442aac9275e9.tar.gz
Add 'of' to TypeScript grammar (fixes #1515.)
Diffstat (limited to 'pygments/lexers/javascript.py')
-rw-r--r--pygments/lexers/javascript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py
index 0507375f..57e1161e 100644
--- a/pygments/lexers/javascript.py
+++ b/pygments/lexers/javascript.py
@@ -482,7 +482,7 @@ class TypeScriptLexer(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|'
+ r'throw|try|catch|finally|new|delete|typeof|instanceof|void|of|'
r'this)\b', Keyword, 'slashstartsregex'),
(r'(var|let|with|function)\b', Keyword.Declaration, 'slashstartsregex'),
(r'(abstract|boolean|byte|char|class|const|debugger|double|enum|export|'