projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b2691
)
FIX #1821 (Parser or lexer mess-up)
author
df@dfranke.us
<unknown>
Mon, 10 Dec 2007 23:06:49 +0000
(23:06 +0000)
committer
df@dfranke.us
<unknown>
Mon, 10 Dec 2007 23:06:49 +0000
(23:06 +0000)
compiler/parser/Lexer.x
patch
|
blob
|
history
diff --git
a/compiler/parser/Lexer.x
b/compiler/parser/Lexer.x
index
84ee57e
..
01ed122
100644
(file)
--- 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