-
Notifications
You must be signed in to change notification settings - Fork 93
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
Github highlights escape sequences in raw strings. #82
Comments
Screenshot? |
It should probably be the other way around---highlight in |
Right, this is because lower-case 'r' raw strings are highlighted as regexp literals, for example: https://github.com/python/cpython/blob/master/Lib/http/cookies.py#L432. This isn't a new feature, You can use upper-case a = R'aaa \n aaa'
a = r'aaa \n aaa' I'd say it's too late to change this. |
Oh that's odd. I suppose that's justifiable. What about the lack of highlighting in non-raw strings? |
Well, this is just a convention now in many major editors. Lower-case upd: Sorry, misread the question :) @vpetrovykh answered it below. |
The apparent lack of highlighting of |
Hmm, non-ideal but doesn't look like the issue is on your end. Thanks. |
Github highlights escape sequences in raw strings.
The text was updated successfully, but these errors were encountered: