[Python-ideas] PEP 8: raw strings & regular expressions

Eric V. Smith eric at trueblade.com
Sun Oct 25 17:06:16 EDT 2015


On 10/22/2015 06:56 PM, Yury Selivanov wrote:

> On the other hand, *a lot* of users are annoyed, when their
> raw strings are highlighted as regexps (why \n is highlighted
> as escaped?).  Often that results not in just wrongly
> highlighted raw strings, but in broken highlighting of
> the whole source file [1].
...

> [1] https://gist.github.com/1st1/d3da5d69a9b6c088c26f

I don't see how this matters to the subject at hand. No matter what you
think an r or R string contains, not detecting the end of the string is
a failure of the syntax highlighter. It's failing to find the end of the
triple-quoted r"""[""" token in this case.

Eric.



More information about the Python-ideas mailing list