FIX #1821 (Parser or lexer mess-up)
authordf@dfranke.us <unknown>
Mon, 10 Dec 2007 23:06:49 +0000 (23:06 +0000)
committerdf@dfranke.us <unknown>
Mon, 10 Dec 2007 23:06:49 +0000 (23:06 +0000)
compiler/parser/Lexer.x

index 84ee57e..01ed122 100644 (file)
@@ -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