Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update look peg special docs #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sogaiu
Copy link
Contributor

@sogaiu sogaiu commented Jun 18, 2024

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:

(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.

@sogaiu sogaiu force-pushed the update-look-peg-special-docs branch from af72263 to ce06bd0 Compare June 18, 2024 10:07
@sogaiu sogaiu force-pushed the update-look-peg-special-docs branch from ce06bd0 to 953eb7c Compare June 18, 2024 10:41
@sogaiu
Copy link
Contributor Author

sogaiu commented Jun 18, 2024

Thanks to @pepe for discussion 👍

Copy link
Member

@pepe pepe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants