Closed SynAckFin closed 3 years ago
Confirmed, thanks for reporting. I will post a patch soon.
Fixed in: https://github.com/skvadrik/re2c/commit/68e1ab7160a367bf98d215fe90279cee26ec5ee8. @SynAckFin can you confirm that it works for you?
Confirmed. Works in both the simple example and the more complex code I'm working on with no side effects detected.
Thank you! Closing the bug.
When a tag is added to the lookahead portion of a regexp it is incorrectly set.
As an example, some of the code generated by the following rule:
@TS "a" / "bcd" @TE "efgh" { return 0; }
looks like this (comments are mine):