summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-11 15:32:26 +0200
committerGeorg Brandl <georg@python.org>2009-09-11 15:32:26 +0200
commit27f7558415b346f45e95e08a026017db00babf23 (patch)
tree56fd42e02d2f0e94f1151957924ee004b9657d44 /pygments
parent912c3c5d5347398edcfaaa43ce5597aec65dbfa2 (diff)
downloadpygments-git-27f7558415b346f45e95e08a026017db00babf23.tar.gz
Fixed a bug in Haskell single-line comment detection (#426).
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/functional.py2
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