Skip to content
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

Add insensitive case character class #220

Closed
mingodad opened this issue Jun 25, 2022 · 0 comments
Closed

Add insensitive case character class #220

mingodad opened this issue Jun 25, 2022 · 0 comments

Comments

@mingodad
Copy link
Contributor

mingodad commented Jun 25, 2022

Would be nice to have character class case insensitive [a-z]i for grammars where identifiers are case insensitive (SQL, Pascal, ...).

Here is an example on peggy playground https://peggyjs.org/online.html (also implemented here https://github.com/mingodad/peg):

start = name_char+ 
name_char =
	 [a-z0-9$_]i* [ \t\n]

Input:

one
Two
One

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants