We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When I use tags with optional expressions, the wrong tag is sometimes assigned to an expression
To Reproduce
Reproduction at https://pest.rs/?g=N4Ig5gTghgtjURALhAUwB4AcIAIC8OwAOgHY44DKA8gJI4B%2Bp5AxFCQMYAWA9hHgBQUAKgEEASgEoA-AxzMAzgFcAZsoCW6PABEqQqU1kBRWqQC%2BpUsPF5iIAFREQ5kjqE3HAOkfOQAGhBqJJiKAC7I9k5AA#editor
*
expr
expr = { SOI ~ #prefix=(STAR)? ~ #suffix=DOT? ~ EOI } STAR={"*"} DOT={"."}
Expected behavior
- expr - (#prefix) STAR: "*" - EOI: ""
Observed behavior
- expr - (#suffix) STAR: "*" - EOI: ""
The text was updated successfully, but these errors were encountered:
fix: adjust tag association in optional and repeat expressions
d55aa76
fixes pest-parser#984, fixes pest-parser#982
fix: adjust tag association in optional and repeat expressions (#985)
28c01cb
fixes #984, fixes #982
Successfully merging a pull request may close this issue.
Describe the bug
When I use tags with optional expressions, the wrong tag is sometimes assigned to an expression
To Reproduce
Reproduction at https://pest.rs/?g=N4Ig5gTghgtjURALhAUwB4AcIAIC8OwAOgHY44DKA8gJI4B%2Bp5AxFCQMYAWA9hHgBQUAKgEEASgEoA-AxzMAzgFcAZsoCW6PABEqQqU1kBRWqQC%2BpUsPF5iIAFREQ5kjqE3HAOkfOQAGhBqJJiKAC7I9k5AA#editor
*
as aexpr
in the example grammarExpected behavior
Observed behavior
The text was updated successfully, but these errors were encountered: