diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-07 00:48:46 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-07 00:48:46 +0000 |
commit | 1bc585837c75f9ab21e49e2dccb6bcd905b1a5bc (patch) | |
tree | 3b1ef8a6c39cbce19ca86bc0466ef57b459c8d13 /src/Text/ParserCombinators | |
parent | 233148f9638f637871391cbed239068aeddb6cca (diff) | |
download | pandoc-1bc585837c75f9ab21e49e2dccb6bcd905b1a5bc.tar.gz |
Fixed performance problems with '--strict' option:
+ Replaced skipEndline with "option ' ' newline" where possible.
+ Replaced "notFollowedBy' header" in definition of endline with
a faster but equally accurate test for a folliwng header.
+ Removed check at the beginning of 'reference' for
a noteStart: This is not needed, because note comes before
referenceKey in the definition of block.
+ Replaced check for a following anyHtmlBlockTag in autoLink
with a check for anyHtmlTag or anyHtmlEndTag.
+ Other small code cleanups.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@444 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/ParserCombinators')
-rw-r--r-- | src/Text/ParserCombinators/Pandoc.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/ParserCombinators/Pandoc.hs b/src/Text/ParserCombinators/Pandoc.hs index 55481b8dc..b55ceb23d 100644 --- a/src/Text/ParserCombinators/Pandoc.hs +++ b/src/Text/ParserCombinators/Pandoc.hs @@ -81,8 +81,7 @@ blankline = try (do -- | Parses one or more blank lines and returns a string of newlines. blanklines :: GenParser Char st [Char] -blanklines = try (do - many1 blankline) +blanklines = try (many1 blankline) -- | Parses backslash, then applies character parser. escaped :: GenParser Char st Char -- ^ Parser for character to escape |