[Fix #118 David Waern **20100408003252 Ignore-this: 63821f3be311cd986571b71e0e359c8 Avoid being too greedy when lexing URL markup (<..>), in order to allow multiple URLs on the same line. Do the same thing with <<..>> and #..#. ] { hunk ./src/Haddock/Lex.x 71 - \<\<.*\>\> { strtoken $ \s -> TokPic (init $ init $ tail $ tail s) } - \<.*\> { strtoken $ \s -> TokURL (init (tail s)) } - \#.*\# { strtoken $ \s -> TokAName (init (tail s)) } + \<\< [^\>]* \>\> { strtoken $ \s -> TokPic (init $ init $ tail $ tail s) } + \< [^\>]* \> { strtoken $ \s -> TokURL (init (tail s)) } + \# [^\#]* \# { strtoken $ \s -> TokAName (init (tail s)) } addfile ./tests/tests/NonGreedy.hs hunk ./tests/tests/NonGreedy.hs 1 +module NonGreedy where + +-- | +f :: a +f = undefined addfile ./tests/tests/NonGreedy.html.ref hunk ./tests/tests/NonGreedy.html.ref 1 + + +NonGreedy
 ContentsIndex
NonGreedy
Synopsis
f :: a
Documentation
f :: a
url1 url2 +
Produced by Haddock version 2.7.2
}