Closed bucket3432 closed 2 years ago
Ugh, don't review this yet. I just tested it in my real-world example and it's not working as expected.
Okay, I've pushed an update and everything should be working as expected. The issue was that it was not recognizing multiple override blocks at the start because the lookahead in L189 was starting at the wrong position. start_tags
is now being prepended to start
after active_char
is assigned so that start
is a prefix of text
during the loop.
Pushed another update that fixed a timing mismatch introduced with the text tags update.
@bucket3432 sorry, this fell through the cracks for a while. Is it ready to review now?
@petzku Yes, this is ready for review.
See the individual commit messages for more details.
Summary:
typewrite_line
to use a state machine-based approachactive_char
immediately following an override block, ensure that the override block is put instart
\N
,\n
and\h
as single characters and remove the hackfix\{
if so desired.