[Python-mode] Error in string-literal pattern

Aviv Hurvitz avivh at cs.huji.ac.il
Tue Jul 18 14:42:20 CEST 2006


It appers that single quoted triple quoted string literals end
prematurely by a
single quote inside them. Similarly, double quoted triple quoted
strings end prematurely by a double quote inside them.

For example:
a = '''  It's tea time '''
won't highlight correctly.

I looked at the python-mode.el source code, and I saw that you do
attempt to handle these cases, but I couldn't see the error in the RE
pattern.

I'm using GNU Emacs version 24.4.1 on GNU/Linux and python-mode revision
4.75.

Thanks for your help.

- Aviv Hurvitz
The Hebrew University, Jerusalem, Israel



More information about the Python-mode mailing list