summaryrefslogtreecommitdiff
path: root/compiler/parser
diff options
context:
space:
mode:
authordf@dfranke.us <unknown>2007-12-10 23:06:49 +0000
committerdf@dfranke.us <unknown>2007-12-10 23:06:49 +0000
commitea7b2faa18618b926fab05cc7cae5e540231a57b (patch)
tree553835402fccbb49ff5949ae45599b6c058619c3 /compiler/parser
parenta0b2691bb9116d06bc6a3a16b36388b477791224 (diff)
downloadhaskell-ea7b2faa18618b926fab05cc7cae5e540231a57b.tar.gz
FIX #1821 (Parser or lexer mess-up)
Diffstat (limited to 'compiler/parser')
-rw-r--r--compiler/parser/Lexer.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x
index 84ee57eb1c..01ed12209f 100644
--- a/compiler/parser/Lexer.x
+++ b/compiler/parser/Lexer.x
@@ -154,7 +154,7 @@ $tab+ { warn Opt_WarnTabs (text "Tab character") }
-- Next, match Haddock comments if no -haddock flag
-"-- " $docsym .* / { ifExtension (not . haddockEnabled) } ;
+"-- " [$docsym \#] .* / { ifExtension (not . haddockEnabled) } ;
-- Now, when we've matched comments that begin with 2 dashes and continue
-- with a different character, we need to match comments that begin with three