Textile reader: Rearranged inline parsers for performance.

This is possible because of the rewrite of simpleInline.
Also removed a redundant parser for grouped inlines.
This commit is contained in:
John MacFarlane 2014-05-06 23:41:56 -07:00
parent 442eecc15c
commit 84f2336a7d

View file

@ -380,17 +380,16 @@ inline = do
-- | Inline parsers tried in order
inlineParsers :: [Parser [Char] ParserState Inlines]
inlineParsers = [ inlineMarkup
, groupedInlineMarkup
, str
inlineParsers = [ str
, whitespace
, endline
, code
, escapedInline
, inlineMarkup
, groupedInlineMarkup
, rawHtmlInline
, rawLaTeXInline'
, note
, try $ (char '[' *> inlineMarkup <* char ']')
, link
, image
, mark