forked from elland/haddock2
ref(lexer): rename MathParen -> MathInline
This commit is contained in:
parent
f3b3b08919
commit
6ec47dad04
2 changed files with 7 additions and 7 deletions
10
src/Lexer.hs
10
src/Lexer.hs
|
|
@ -51,8 +51,8 @@ data Token
|
|||
| ParenClose
|
||||
| BracketOpen
|
||||
| BracketClose
|
||||
| MathsParenOpen
|
||||
| MathsParenClose
|
||||
| MathInlineOpen
|
||||
| MathInlineClose
|
||||
| MathsBracketOpen
|
||||
| MathsBracketClose
|
||||
| NumericEntity Int
|
||||
|
|
@ -86,7 +86,7 @@ lexText = go
|
|||
choice $
|
||||
Parsec.try
|
||||
<$> [ mathsBracket
|
||||
, mathsParens
|
||||
, mathInline
|
||||
, escape -- maths go before escape to avoid mismatch
|
||||
, headers
|
||||
, newlineToken
|
||||
|
|
@ -245,8 +245,8 @@ labeledLink = do
|
|||
mathsBracket :: Lexer
|
||||
mathsBracket = delimited "\\[" "\\]" MathsBracketOpen MathsBracketClose
|
||||
|
||||
mathsParens :: Lexer
|
||||
mathsParens = delimited "\\(" "\\)" MathsParenOpen MathsParenClose
|
||||
mathInline :: Lexer
|
||||
mathInline = delimited "\\(" "\\)" MathInlineOpen MathInlineClose
|
||||
|
||||
birdTrack :: Lexer
|
||||
birdTrack = delimitedNoTrailing ">> " eol BirdTrack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue