-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Lookahead and lookback #54
Labels
enhancement
New feature or request
Comments
There is no a comment explaining this: https://github.com/dtolnay/quote/blob/31c3be473d0457e29c4f47ab9cff73498ac804a7/src/lib.rs#L664-L746 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't looked into this too much yet, but if I am not mistaken the
quote
crate uses a neat trick to allow lookahead and lookback-ish matching on tokens, see:https://github.com/dtolnay/quote/blob/278057d0d2e59c7de95d79d42e4934783d013e83/src/lib.rs#L672-L702
it might be nice to add this to the pattern section(or do a case study on the macro even?)
The text was updated successfully, but these errors were encountered: