diff options
author | df@dfranke.us <unknown> | 2007-12-10 23:06:49 +0000 |
---|---|---|
committer | df@dfranke.us <unknown> | 2007-12-10 23:06:49 +0000 |
commit | ea7b2faa18618b926fab05cc7cae5e540231a57b (patch) | |
tree | 553835402fccbb49ff5949ae45599b6c058619c3 /compiler/parser | |
parent | a0b2691bb9116d06bc6a3a16b36388b477791224 (diff) | |
download | haskell-ea7b2faa18618b926fab05cc7cae5e540231a57b.tar.gz |
FIX #1821 (Parser or lexer mess-up)
Diffstat (limited to 'compiler/parser')
-rw-r--r-- | compiler/parser/Lexer.x | 2 |
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 |