-
Notifications
You must be signed in to change notification settings - Fork 65
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
Enable regular expression flags for terminal rules #127
Comments
I don't know how useful are other flags, but those seen to be useful:
Will mean to change the RegexLiteral to:
|
This idea does not work well with the changes made in #288. Let's postpone it for now. |
Regarding case sensitivity, there's also a group flag which allows to make search case insensitive. I would argue, that users which are interested in this feature should use the group flag instead of the global regex flag. |
What about a new keyword for multiline matching? |
@dhuebner Multiline matching is always enabled, no flag necessary :) See the multiline-comment terminal rules. |
@msujew |
Keyword is not a good idea, because this flag regex specific |
Hi, just want to mention that the |
For now, the unicode flag isn't supported in Chevrotain. It is part of a larger lexer issue, see Chevrotain/chevrotain#1670. Note that custom |
See #126 (comment). JavaScript supports flags to control the behavior of regular expressions. Shall we enable in the grammar language?
The text was updated successfully, but these errors were encountered: