-
Notifications
You must be signed in to change notification settings - Fork 109
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
How to match string literals case insensitively #216
Comments
The However, the addition of rule arguments allows you to define your own rule that matches a given literal string. Something like:
Breaking that down, This is the kind of thing that I'd like to eventually get into a kind of "standard library" of common rules: #201. |
Alternatively, if all the literals in your language are case insensitive, you could define the grammar for your own struct wrapping |
I still have to try this out. But looks like it's gonna work. |
Worked like a charm for me. |
I'm working on upgrading a codebase from peg 0.5 to 0.6.
There's a bunch of rules like this one in there:
In 0.6 the
i
modifier of"help"i
no longer works. What's the recommended way to do this now?The text was updated successfully, but these errors were encountered: