Commits

Anonymous committed f450362

CoffeeScript multiline comments are delimited by exactly three hash symbols. Anything more is a single-line comment.

Comments (0)

Files changed (1)

pygments/lexers/web.py

     tokens = {
         'commentsandwhitespace': [
             (r'\s+', Text),
-            (r'###.*?###', Comment.Multiline),
-            (r'#.*?\n', Comment.Single),
+            (r'###[^#].*?###', Comment.Multiline),
+            (r'#(?!##[^#]).*?\n', Comment.Single),
         ],
         'multilineregex': [
             include('commentsandwhitespace'),