summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--pygments/lexers/web.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 158b94ed..6bb658ec 100644
--- a/CHANGES
+++ b/CHANGES
@@ -18,6 +18,8 @@ Version 1.4
- More context-sensitive Gherkin lexer with support for more i18n translations.
+- Small fix in the CoffeeScript lexer (#519).
+
Version 1.3.1
-------------
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 8dd3482d..59d1b9ab 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -1599,14 +1599,14 @@ class CoffeeScriptLexer(RegexLexer):
(r'[})\].]', Punctuation),
(r'(for|in|of|while|break|return|continue|switch|when|then|if|else|'
r'throw|try|catch|finally|new|delete|typeof|instanceof|super|'
- r'extends|this)\b', Keyword, 'slashstartsregex'),
+ r'extends|this|class|by)\b', Keyword, 'slashstartsregex'),
(r'(true|false|yes|no|on|off|null|NaN|Infinity|undefined)\b',
Keyword.Constant),
(r'(Array|Boolean|Date|Error|Function|Math|netscape|'
r'Number|Object|Packages|RegExp|String|sun|decodeURI|'
r'decodeURIComponent|encodeURI|encodeURIComponent|'
- r'Error|eval|isFinite|isNaN|parseFloat|parseInt|document|this|'
- r'window)\b', Name.Builtin),
+ r'eval|isFinite|isNaN|parseFloat|parseInt|document|window)\b',
+ Name.Builtin),
(r'[$a-zA-Z_][a-zA-Z0-9_\.:]*\s*:\s', Name.Variable,
'slashstartsregex'),
(r'@[$a-zA-Z_][a-zA-Z0-9_\.:]*\s*:\s', Name.Variable.Instance,