Open sogaiu opened 2 months ago
This PR contains changes to the docs for the look peg special.
look
The docs do not currently appear to cover the case of look being called with only a single argument:
(look offset patt) Matches only if patt matches at a fixed offset. offset can be any integer. patt will not produce captures and the peg will not advance any characters.
(look offset patt)
Matches only if patt matches at a fixed offset. offset can be any integer. patt will not produce captures and the peg will not advance any characters.
This PR attempts to cover this additional case.
Please see here for some background.
Thanks to @pepe for discussion :+1:
This PR contains changes to the docs for the
look
peg special.The docs do not currently appear to cover the case of
look
being called with only a single argument:This PR attempts to cover this additional case.
Please see here for some background.