Commits

gbrandl  committed 1373aff

Fixed a bug in Haskell single-line comment detection (#426).

  • Participants
  • Parent commits e48424a
  • Branches trunk

Comments (0)

Files changed (2)

 - Fixed various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#410,
   #411, #413, #414) and fmarc (#419).
 
+- Fixed a bug in Haskell single-line comment detection (#426).
+
 - Added new-style reStructuredText directive for docutils 0.5+ (#428).
 
 

File pygments/lexers/functional.py

             # Whitespace:
             (r'\s+', Text),
             #(r'--\s*|.*$', Comment.Doc),
-            (r'--.*$', Comment.Single),
+            (r'--(?![!#$%&*+./<=>?@\^|_~]).*?$', Comment.Single),
             (r'{-', Comment.Multiline, 'comment'),
             # Lexemes:
             #  Identifiers