-
Notifications
You must be signed in to change notification settings - Fork 9
Raw string support #25
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
Comments
Good point. I'm in the middle of a bunch of changes, so I'll throw this in there too. Thanks! |
As I recall, raw strings are often used for regex, so the regex highlighter kicks in and that is why escapes are highlighted. As far as I can tell, there is no way to distinguish a raw string that is not meant for regex from a raw string meant for regex. I personally prefer having the escaped chars to no regex highlighting. |
Another good point. I'll look at exactly how the regexes work - there might be a way to exclude |
As it turns out, while adding an uppercase |
* can now differentiate between raw-regex strings (r"...") and raw strings (R"..."). raw-regex will include regex syntax highlighting, raw-only will not. Addresses #25 * fixed `constant.other.allcaps` to not highlight capital letters just before `.`, `(`, `'`, or `"`. * magic function definitions are now properly highlighted again. Fixes #51 (small problem - both names and calls are scoped as name...)
I'll be releasing 2.1 soon. With it, you can now (again) use |
Raw strings have the same formatting as normal strings, so backslashes are incorrectly interpreted as escapes, for example:
It would be useful if raw strings didn't highlight escapes differently.
The text was updated successfully, but these errors were encountered: