diff options
author | Georg Brandl <georg@python.org> | 2012-08-19 11:33:50 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-08-19 11:33:50 +0200 |
commit | 772f6f9766db93f2111472384cbb48ef227a3272 (patch) | |
tree | 3981c8364533f5ba1ea3ed5b82b894d67bf7431c | |
parent | 845123f75f1c547762c965c4368e211c8eb8863a (diff) | |
download | pygments-772f6f9766db93f2111472384cbb48ef227a3272.tar.gz |
Closes #775: CoffeeScript: fix multiline-regex syntax
-rw-r--r-- | pygments/lexers/web.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index 0b466983..7c071b1b 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -1802,10 +1802,10 @@ class CoffeeScriptLexer(RegexLexer): (r'#(?!##[^#]).*?\n', Comment.Single), ], 'multilineregex': [ - include('commentsandwhitespace'), + (r'[^/#]+', String.Regex), (r'///([gim]+\b|\B)', String.Regex, '#pop'), - (r'/', String.Regex), - (r'[^/#]+', String.Regex) + (r'#{', String.Interpol, 'interpoling_string'), + (r'[/#]', String.Regex), ], 'slashstartsregex': [ include('commentsandwhitespace'), |