From a897d5c77d0e99c586023cc4c14062ef7cc4f8a2 Mon Sep 17 00:00:00 2001 From: "simon.hengel" Date: Thu, 8 Apr 2010 19:26:34 +0000 Subject: Let parsing fails on paragraphs that are immediately followed by an example This is more consistent with the way we treat code blocks. --- src/Haddock/Lex.x | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Haddock/Lex.x') diff --git a/src/Haddock/Lex.x b/src/Haddock/Lex.x index 77d22723..fca2bf7f 100644 --- a/src/Haddock/Lex.x +++ b/src/Haddock/Lex.x @@ -58,6 +58,7 @@ $ident = [$alphanum \'\_\.\!\#\$\%\&\*\+\/\<\=\>\?\@\\\\\^\|\-\~\:] -- beginning of a line { $ws* \> { begin birdtrack } + $ws* ghci \> { strtoken TokExamplePrompt `andBegin` exampleexpr } $ws* \n { token TokPara `andBegin` para } -- Here, we really want to be able to say -- $ws* (\n | ) { token TokPara `andBegin` para} -- cgit v1.2.3