-
Notifications
You must be signed in to change notification settings - Fork 452
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
Configure how regex_syntax
treats .
, case-sensitivity, etc
#172
Comments
Technically, there is a work around that you should be able to use now: simply prepend your default flag settings to the regex string given to the parser. So for example, given any regex With all that said, perhaps there should be an Does this help solve your problem or am I way off track? |
Well I'll be. I was going to say that this is not the case for lexical generations, except I looked up what flex does and it says
Yes, this is precisely what I want.
...and I agree that although I should change how
Yeah, I mentioned this potential workaround in my bug report. It seems fine except that then the error messages don't match up as well. |
I agree this would be nice. Good point about the error messages!
Whoops! Missed that. :-) |
Currently it seems that
.
is translated toAnyCharNoNL
, but for my use case I would preferAnyChar
. I imagine I could probably achieve this by tweaking the input string to something like(?s:...)
, but it seems like something that ought to be configurable in a more "first-class" way (among other things, that will mess up the indices in my error messages, unless of course I account for it). Another similar example is being able to control if the regex is case sensitive or not.The text was updated successfully, but these errors were encountered: