diff options
author | Russ Allbery <rra@cpan.org> | 2021-09-09 16:17:46 -0700 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-09-09 16:17:46 -0700 |
commit | f43e7f41e58cb096d0f275fb8ae6940d359d699e (patch) | |
tree | 26e36d054222217d118fb2c4c1dbd09be00146ad /t/data/spin | |
parent | 99933cd7ba67347a5043ffdfc4b369d35f6a06f8 (diff) |
Read entire thread files when parsing
Rather than trying to carefully read thread files paragraph by
paragraph, read the entire file at once and reuse _split_paragraphs
to separate it into parseable chunks. Add line number tracking to
the input file stack and use that to improve error reporting.
Diffstat (limited to 't/data/spin')
-rw-r--r-- | t/data/spin/errors/errors.th | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/data/spin/errors/errors.th b/t/data/spin/errors/errors.th index 3af991e..6f08cd9 100644 --- a/t/data/spin/errors/errors.th +++ b/t/data/spin/errors/errors.th @@ -1,6 +1,7 @@ \heading[Errors] -\==[macro] [1] [\1 \2] +\==[macro] [1] [\1 + \2] \==[badcount] [foo] [bar] \macro[ |