Commits

Joe Jevnik  committed 029f725

Adds block comments for scheme as defined in R6RS.
(http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-7.html#node_sec_4.2.3)

  • Participants
  • Parent commits 2ba9b53

Comments (0)

Files changed (1)

File pygments/lexers/functional.py

             # the comments - always starting with semicolon
             # and going to the end of the line
             (r';.*$', Comment.Single),
+            # multi-line comment
+            (r'#\|', Comment.Multiline, 'multiline-comment'),
 
             # whitespaces - usually not relevant
             (r'\s+', Text),
             (r'(\(|\))', Punctuation),
             (r'(\[|\])', Punctuation),
         ],
+        'multiline-comment' : [
+            (r'#\|', Comment.Multiline, '#push'),
+            (r'\|#', Comment.Multiline, '#pop'),
+            (r'[^|#]+', Comment.Multiline),
+            (r'[|#]', Comment.Multiline),
+        ],
     }