Menu

#16 Triple-quoted string font-lock problem

open-wont-fix
nobody
None
5
2004-07-14
2004-05-30
No

Font-lock in xemacs is not displaying triple-quoted strings correctly.
For example:

"""
This is "a test" string
on multiple lines.
"""

The phrases "This is " and " string on multiple lines." are formatted
as strings, but "a test" is not formatted as a string.

It appears that the triple quote is being treated as three
individual quotation marks instead of as a single entity.

A fix for this will be greatly appreciated. I *love* python-mode.el!

Discussion

  • Barry Warsaw

    Barry Warsaw - 2004-07-14
    • status: open --> open-wont-fix
     
  • Barry Warsaw

    Barry Warsaw - 2004-07-14

    Logged In: YES
    user_id=12800

    This is not something python-mode can realistically address.
    As you properly guess, because of limitations in Emacs'
    (and XEmacs') built-in syntax table implementation,
    python-mode has no choice but to treat triple quoted strings
    as three separate entities.

     
  • Edward Loper

    Edward Loper - 2004-09-06

    Logged In: YES
    user_id=195958

    See patch #1023335 (Handle triple-quoted strings correctly):

    http://sourceforge.net/tracker/index.php?
    func=detail&aid=1023335&group_id=86916&atid=581351

    It might not be the prettiest solution, but it works. :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.