Yes, this patch [#1023335] should fix that problem.
As to having trouble getting my patch to work:
- Did you apply it against rev 4.62 (the revision
in python-mode cvs, not the one under files or
included with python's cvs)
- I'm not exactly an elisp guru, so it's not
necessarily your fault -- there could be a bug
in my code. :)
- If you're still having trouble, please email me
directly and I'll try to figure out what's wrong --
I'm definitely interested in seeing if this works
for other people. edloper at gradient dot cis
dot upenn dot edu.
For posterity, here's a more complete description of the problem:
Currently, emacs mode has no special handling for triple quoted strings.
So if a triple quoted string contains an unmatched (and non-
backslashed) quote of the same type, then it's interpreted as a close
quote, and the number of quote marks gets off by one, so the final quote
of the triple quoted string is interpreted as an open quote.
I.e., for this text:
""" inside " outside """ inside
The regions marked 'inside' are colored as quotes. The normal work-
around is to backslash quotes in triple quoted strings, since a backslashed
quote is just a quote:
""" inside \" inside """ outside
But this doesn't work for raw strings.
The referenced patch adds explicit handling for triple quoted strings, and
should solve these problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=12623
That was meant to be a comment on the previous triple
comment thread
Logged In: YES
user_id=195958
Yes, this patch [#1023335] should fix that problem.
As to having trouble getting my patch to work:
- Did you apply it against rev 4.62 (the revision
in python-mode cvs, not the one under files or
included with python's cvs)
- I'm not exactly an elisp guru, so it's not
necessarily your fault -- there could be a bug
in my code. :)
- If you're still having trouble, please email me
directly and I'll try to figure out what's wrong --
I'm definitely interested in seeing if this works
for other people. edloper at gradient dot cis
dot upenn dot edu.
For posterity, here's a more complete description of the problem:
Currently, emacs mode has no special handling for triple quoted strings.
So if a triple quoted string contains an unmatched (and non-
backslashed) quote of the same type, then it's interpreted as a close
quote, and the number of quote marks gets off by one, so the final quote
of the triple quoted string is interpreted as an open quote.
I.e., for this text:
""" inside " outside """ inside
The regions marked 'inside' are colored as quotes. The normal work-
around is to backslash quotes in triple quoted strings, since a backslashed
quote is just a quote:
""" inside \" inside """ outside
But this doesn't work for raw strings.
The referenced patch adds explicit handling for triple quoted strings, and
should solve these problems.