From 31c36bc417426d144e1c80d5d719176e4d6eb133 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Thu, 26 Aug 2010 23:45:03 +0000 Subject: support both kinds of enumerated lists in doc markup The documentation for Haddock says enumerated lists can use either of (1) first item 2. second item The second form wasn't actually supported --- src/Haddock/Lex.x | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Haddock/Lex.x b/src/Haddock/Lex.x index 766f12ed..f2fdd377 100644 --- a/src/Haddock/Lex.x +++ b/src/Haddock/Lex.x @@ -52,6 +52,7 @@ $ident = [$alphanum \'\_\.\!\#\$\%\&\*\+\/\<\=\>\?\@\\\\\^\|\-\~\:] $ws* [\*\-] { token TokBullet `andBegin` string } $ws* \[ { token TokDefStart `andBegin` def } $ws* \( $digit+ \) { token TokNumber `andBegin` string } + $ws* $digit+ \. { token TokNumber `andBegin` string } $ws* { begin string } } -- cgit v1.2.3