Replies: 4 comments
-
I'm only learning pest myself, but did you try making I think it would also be helpful to reduce the above to a minimal example which reproduces the problem. (Often the exercise of producing a minimal reproducing example helps me solve problems myself.) In particular, if you don't define |
Beta Was this translation helpful? Give feedback.
-
I have tested deleting WHITESPACE in rules.pest。 this is invalid So I guess PEST removed the WHITESPACE already(call into_inner() emthod) , so I submit the problem here |
Beta Was this translation helpful? Give feedback.
-
(It may have been better to raise this question as a discussion since it is not clear there is a bug in pest.) Here's a cut-down example of the issue you are seeing (checked using the editor): Grammar:
Input:
Result:
Deleting WHITESPACE like I suggested produces the result you want:
This gives a good clue to what is going on. So here is the solution I suggest... Grammar:
Input:
Result:
|
Beta Was this translation helpful? Give feedback.
-
Can this issue now be closed? |
Beta Was this translation helpful? Give feedback.
-
for example:
but... when i use
pair.into_inner()
will be remove the space ' ' attr.this is rules.pest
Beta Was this translation helpful? Give feedback.
All reactions