diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-08-26 23:45:03 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-08-26 23:45:03 +0000 |
commit | 31c36bc417426d144e1c80d5d719176e4d6eb133 (patch) | |
tree | 5b5681f7f181f471072c389415811186db41146b /src | |
parent | e7c9151b10168d3da6485fbce2dab1e378daa5ad (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Lex.x | 1 |
1 files changed, 1 insertions, 0 deletions
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 } } |