[Python-mode] python-mode 5.1.0aq; Within a triple-quoted string, python-mode switches out of string mode for single quotes

Patrik Jonsson code at familjenjonsson.org
Sat Jun 11 18:40:50 CEST 2011

Dear Barry,

Within a multi-line string, using quotes switches out of string mode. This
can cause the remainder of the code to end up in string-mode. Try either of

a semi-quoted "string inside the string switches syntax highlighting
out of string mode and when the string really ends, real code ends up
in string-mode"""

def func_highlighted_as_string():

It also interprets a "string with # in it" as an unbalanced-quote
                                  # since it thinks the hash mark is
                                  # an actual comment"""

Emacs  : GNU Emacs (i386-apple-darwin9.8.0, NS
 of 2010-08-18 on braeburn.aquamacs.org - Aquamacs Distribution 2.1
Package: python-mode 5.1.0aq

current state:
 py-python-command "python"
 py-indent-offset 4
 py-block-comment-prefix "##"
 py-temp-directory "/var/folders/oA/oAy-YWg-FoSh1QxGzAILA++++TI/-Tmp-/"
 py-beep-if-tab-change t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110611/cbd4ea1c/attachment.html>

More information about the Python-mode mailing list