diff options
author | simonmar <unknown> | 2002-04-09 11:33:55 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-04-09 11:33:55 +0000 |
commit | 3675464e88e2aa252b6dc7cdfcd1082c1f9143f8 (patch) | |
tree | 75879497cd20b20b9460050a3a13393e593dabb2 /src/HaddockParse.y | |
parent | 2d73fd75b8b17c660d2da5cf12c51d064028bdee (diff) |
[haddock @ 2002-04-09 11:33:54 by simonmar]
- add the <...> syntax for marking up URLs in documentation
- Make the output for data & class declarations more compact when
there aren't any documentation annotations on the individual
methods or constructors respectively.
Diffstat (limited to 'src/HaddockParse.y')
-rw-r--r-- | src/HaddockParse.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HaddockParse.y b/src/HaddockParse.y index 2402452c..9411ff44 100644 --- a/src/HaddockParse.y +++ b/src/HaddockParse.y @@ -12,6 +12,8 @@ import HaddockTypes '/' { TokSpecial '/' } '[' { TokSpecial '[' } ']' { TokSpecial ']' } + '<' { TokSpecial '<' } + '>' { TokSpecial '>' } '*' { TokBullet } '(n)' { TokNumber } PARA { TokPara } @@ -46,6 +48,7 @@ seq :: { ParsedDoc } elem :: { ParsedDoc } : STRING { DocString $1 } | '/' STRING '/' { DocEmphasis (DocString $2) } + | '<' STRING '>' { DocURL $2 } | SQUO STRING SQUO { DocIdentifier $2 } | DQUO STRING DQUO { DocModule $2 } | '[' seq ']' { DocMonospaced $2 } |