diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:46:09 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:46:09 -0700 |
commit | 9d8ee43c77a6d0bf172ae09d31a7c249ed37f925 (patch) | |
tree | 3ffebe276a12c32d078a76dffd50bbaabebd5ffb /pygments/lexers/haskell.py | |
parent | 86c2eee37cf292677032e02f553710d4c1eb1f04 (diff) | |
download | pygments-9d8ee43c77a6d0bf172ae09d31a7c249ed37f925.tar.gz |
Curly brace escaping, round 2.
These were all pointed out by regexlint but required manual effort to track down
(indicator.py was confused by most of them being produced by expressions).
Also comment out some iffy comment patterns.
Diffstat (limited to 'pygments/lexers/haskell.py')
-rw-r--r-- | pygments/lexers/haskell.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/haskell.py b/pygments/lexers/haskell.py index 9bcbc406..48980e12 100644 --- a/pygments/lexers/haskell.py +++ b/pygments/lexers/haskell.py @@ -414,8 +414,9 @@ class CryptolLexer(RegexLexer): (r'\s+', Text), (r'[A-Z][a-zA-Z0-9_]*', Keyword.Type), (r'(_[\w\']+|[a-z][\w\']*)', Name.Function), - (r'--(?![!#$%&*+./<=>?@\^|_~:\\]).*?$', Comment.Single), - (r'{-', Comment.Multiline, 'comment'), + # TODO: these don't match the comments in docs, remove. + #(r'--(?![!#$%&*+./<=>?@\^|_~:\\]).*?$', Comment.Single), + #(r'{-', Comment.Multiline, 'comment'), (r',', Punctuation), (r'[:!#$%&*+.\\/<=>?@^|~-]+', Operator), # (HACK, but it makes sense to push two instances, believe me) |