-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Feature request: allowing ignoring case in tokens #196
Comments
I'd go for just It's all contained in the proc macro here, should be straight forward to mutate the definition given the flag, one thing to keep in mind is that this will have to work with both |
I started to think about the implementation but I'm running in a little issue here: How do we discriminate between A way to fix this issue without needing to think about callbacks may be to change the syntax into something like #[token, ignore(case)]
Hello, and just treat Also, unrelated to the issue: would a The previous syntax could also be used with this variant. #[token("hello", ignore(ascii_case))]
Hello But I will be honest, I still prefer the "flag" version, with just Any thought about that? |
Ah, you are right, a bare name assumes it's a function ref. We can bikeshed over a better way to flag this later, I reckon changing that shouldn't much of a hassle once the logic is done. |
#198 merged |
Being able to do something like that would be neat.
Does an equivalent to this already exist? Would it be a good first issue? (I would like to try and implement it :) )
The text was updated successfully, but these errors were encountered: