summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Taubert <tim.taubert@gmx.de>2011-08-26 12:02:37 +0200
committerTim Taubert <tim.taubert@gmx.de>2011-08-26 12:02:37 +0200
commitb62593b68180a28accc90f81d4a2356ff6b8d451 (patch)
tree2d28d9ba2a14129e08a4d0b939846e5b6dd59358
parentbcc9247239b5260f306e37181956c7d0f059ba85 (diff)
downloadpygments-b62593b68180a28accc90f81d4a2356ff6b8d451.tar.gz
added 'let' keyword to JavascriptLexer
-rw-r--r--pygments/lexers/web.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 17a42d04..b998f2e7 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -68,7 +68,7 @@ class JavascriptLexer(RegexLexer):
(r'(for|in|while|do|break|return|continue|switch|case|default|if|else|'
r'throw|try|catch|finally|new|delete|typeof|instanceof|void|'
r'this)\b', Keyword, 'slashstartsregex'),
- (r'(var|with|function)\b', Keyword.Declaration, 'slashstartsregex'),
+ (r'(var|let|with|function)\b', Keyword.Declaration, 'slashstartsregex'),
(r'(abstract|boolean|byte|char|class|const|debugger|double|enum|export|'
r'extends|final|float|goto|implements|import|int|interface|long|native|'
r'package|private|protected|public|short|static|super|synchronized|throws|'