A merge of this patch:
Mon Aug 7 16:22:14 CEST 2006 Simon Marlow <simonmar@microsoft.com>
* Add <<url>> for images
Submitted by: Lennart Augustsson
Please merge to the 6.8.2 branch.
| DocDefList [(HsDoc id, HsDoc id)]
| DocCodeBlock (HsDoc id)
| DocURL String
+ | DocPic String
| DocAName String
deriving (Eq, Show)
| TokIdent [RdrName]
| TokString String
| TokURL String
+ | TokPic String
| TokEmphasis String
| TokAName String
| TokBirdTrack String
<string,def> {
$special { strtoken $ \s -> TokSpecial (head s) }
+ \<\<.*\>\> { strtoken $ \s -> TokPic (init $ init $ tail $ tail s) }
\<.*\> { strtoken $ \s -> TokURL (init (tail s)) }
\#.*\# { strtoken $ \s -> TokAName (init (tail s)) }
\/ [^\/]* \/ { strtoken $ \s -> TokEmphasis (init (tail s)) }
| TokIdent [RdrName]
| TokString String
| TokURL String
+ | TokPic String
| TokEmphasis String
| TokAName String
| TokBirdTrack String
']' { TokDefEnd }
DQUO { TokSpecial '\"' }
URL { TokURL $$ }
+ PIC { TokPic $$ }
ANAME { TokAName $$ }
'/../' { TokEmphasis $$ }
'-' { TokBullet }
: STRING { DocString $1 }
| '/../' { DocEmphasis (DocString $1) }
| URL { DocURL $1 }
+ | PIC { DocPic $1 }
| ANAME { DocAName $1 }
| IDENT { DocIdentifier $1 }
| DQUO strings DQUO { DocModule $2 }
DocURL str -> return (DocURL str)
+ DocPic str -> return (DocPic str)
+
DocAName str -> return (DocAName str)