1. Jarrett Billingsley
  2. pygments-main

Commits

mfic...@G14866.local  committed f450362

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

  • Participants
  • Parent commits 5cc9495
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/web.py

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