aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-12 17:45:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-12 19:04:14 -0800
commitd9322629a36ad50035912ee56df876c345039225 (patch)
treeae812c21c13405cbf81fa71870004aee7ae9db6b /benchmark
parent3be066b7d308ca7f103c7fabd80238b350bf4f94 (diff)
downloadpandoc-d9322629a36ad50035912ee56df876c345039225.tar.gz
LaTeX reader improvements.
* Rewrote `withRaw` so it doesn't rely on fragile assumptions about token positions (which break when macros are expanded). This requires the addition of `sEnableWithRaw` and `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw` to disable collecting of raw tokens in certain contexts. * Add `parseFromToks` to T.P.Readers.LaTeX.Parsing. * Fix parsing of single character tokens so it doesn't mess up the new raw token collecting. * These changes slightly increase allocations and have a small performance impact, but it's minor. Closes #7092.
Diffstat (limited to 'benchmark')
0 files changed, 0 insertions, 0 deletions