aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockParse.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/HaddockParse.y')
-rw-r--r--src/HaddockParse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HaddockParse.y b/src/HaddockParse.y
index 17fbf2f4..f74d2b69 100644
--- a/src/HaddockParse.y
+++ b/src/HaddockParse.y
@@ -12,13 +12,13 @@ import HsParseMonad
%token SQUO { TokSpecial '\'' }
BQUO { TokSpecial '`' }
DQUO { TokSpecial '\"' }
+ '/' { TokSpecial '/' }
'@' { TokSpecial '@' }
URL { TokURL $$ }
'*' { TokBullet }
'(n)' { TokNumber }
'>' { TokBirdTrack }
PARA { TokPara }
- EMPH { TokEmph $$ }
STRING { TokString $$ }
%monad { Either String }
@@ -67,7 +67,7 @@ seq1 :: { Doc }
elem1 :: { Doc }
: STRING { DocString $1 }
- | EMPH { DocEmphasis (DocString $1) }
+ | '/' STRING '/' { DocEmphasis (DocString $2) }
| URL { DocURL $1 }
| squo STRING squo { strToHsQNames $2 }
| DQUO STRING DQUO { DocModule $2 }