diff options
| author | Georg Brandl <georg@python.org> | 2009-09-11 15:32:26 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-09-11 15:32:26 +0200 |
| commit | 27f7558415b346f45e95e08a026017db00babf23 (patch) | |
| tree | 56fd42e02d2f0e94f1151957924ee004b9657d44 /pygments | |
| parent | 912c3c5d5347398edcfaaa43ce5597aec65dbfa2 (diff) | |
| download | pygments-git-27f7558415b346f45e95e08a026017db00babf23.tar.gz | |
Fixed a bug in Haskell single-line comment detection (#426).
Diffstat (limited to 'pygments')
| -rw-r--r-- | pygments/lexers/functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index d579865c..50974d17 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -352,7 +352,7 @@ class HaskellLexer(RegexLexer): # Whitespace: (r'\s+', Text), #(r'--\s*|.*$', Comment.Doc), - (r'--.*$', Comment.Single), + (r'--(?![!#$%&*+./<=>?@\^|_~]).*?$', Comment.Single), (r'{-', Comment.Multiline, 'comment'), # Lexemes: # Identifiers |
