Skip to content

Whitespace not properly ignored in digit sequences #975

Answered by zhmu
zhmu asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out that you need to opt-in the grammar-extras feature for pest_derive:

pest_derive = { version = "2.7", features = ["grammar-extras"] }

I understand the need to keep old grammars working, but perhaps this should be added to the documentation in some way: I'd expect you to want this behaviour for new projects.

Finally, apologies for raising a new discussion and not finding the prior discussions/issues. I guess I didn't look hard enough.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NoahTheDuke
Comment options

Answer selected by zhmu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants