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

[Feature Request]: Unicode Range #65

Closed
soasme opened this issue Apr 12, 2021 · 0 comments
Closed

[Feature Request]: Unicode Range #65

soasme opened this issue Apr 12, 2021 · 0 comments

Comments

@soasme
Copy link
Owner

soasme commented Apr 12, 2021

Is your feature request related to a problem? Please describe.

Some programming languages, such as Go, allows unicode letters in identifiers.
Having a complete set of unicode letters in Peppa PEG grammar is tedious and low performant.

Describe the solution you'd like

Extend range to support [\p{L}] in addition to current implementation: [a-f] / [\u{1}-\u{10ffff}].
Since \p itself has already the meaning of "range", there is no need to add a dash specifying the lower and upper.

More "\p" examples can be seen in Regex: https://www.regular-expressions.info/unicode.html, https://www.compart.com/en/unicode/category.

Describe alternatives you've considered

An alternative way is to provide built-in characters like in pest: UNICODE_LETTERS.

Additional context

N/A

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

No branches or pull requests

1 participant