diff options
author | mficarra <mficarra@G14866.local> | 2012-06-18 18:29:55 -0500 |
---|---|---|
committer | mficarra <mficarra@G14866.local> | 2012-06-18 18:29:55 -0500 |
commit | 3a1c374c00e9953856e88d51c5840bda4ad9b95a (patch) | |
tree | 9923f8bec8bd3b80612cded27e31c382760818a2 | |
parent | 69c0e4e07cd9004c026238315fb1d6cff73a278b (diff) | |
download | pygments-3a1c374c00e9953856e88d51c5840bda4ad9b95a.tar.gz |
CoffeeScript multiline comments are delimited by exactly three hash symbols. Anything more is a single-line comment.
-rw-r--r-- | pygments/lexers/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py index 5ac56c19..6b788e82 100644 --- a/pygments/lexers/web.py +++ b/pygments/lexers/web.py @@ -1797,8 +1797,8 @@ class CoffeeScriptLexer(RegexLexer): tokens = { 'commentsandwhitespace': [ (r'\s+', Text), - (r'###.*?###', Comment.Multiline), - (r'#.*?\n', Comment.Single), + (r'###[^#].*?###', Comment.Multiline), + (r'#(?!##[^#]).*?\n', Comment.Single), ], 'multilineregex': [ include('commentsandwhitespace'), |