git.iko.soy/typeable/pandoc
on master help sign in
Efficiency improvements to RST reader (more than doubled

speed): + removed tabchar + rearranged parsers in inline git-svn-id: https://pandoc.googlecode.com/svn/trunk@958 788f1e2b-df1e-0410-8736-df70ead52e1b

commit2a37d8d30a3eb79e4fafe89d23de6d1f649ffacf authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 29 Aug 2007, 20:22 (19 years ago) parent015644b
1 file changed+9−12
src/Text/Pandoc/Readers/RST.hs+9−12
src/Text/Pandoc/Readers/RST.hs+9−12
@@ -478,19 +478,18 @@ regularKey = try $ do
478478 -- inline
479479 --
480480
481−inline = choice [ superscript
482− , subscript
483− , escapedChar
484− , link
485− , image
486− , hyphens
487− , strong
488− , emph
489− , code
481+inline = choice [ link
490482 , str
491− , tabchar
492483 , whitespace
493484 , endline
485+ , strong
486+ , emph
487+ , code
488+ , image
489+ , hyphens
490+ , superscript
491+ , subscript
492+ , escapedChar
494493 , symbol ] <?> "inline"
495494
496495hyphens = try $ do
@@ -530,8 +529,6 @@ subscript = interpreted "sub" >>= (return . Subscript)
530529
531530whitespace = many1 spaceChar >> return Space <?> "whitespace"
532531
533−tabchar = tab >> return (Str "\t")
534−
535532str = notFollowedBy' oneWordReference >>
536533 many1 (noneOf (specialChars ++ "\t\n ")) >>= return . Str
537534