bugGNU nano - Bugs: bug #51526, Python syntax highlighting --...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51526: Python syntax highlighting -- opening triple quotes at end of line

Submitter:  Peter <exodus>
Submitted:  Fri 21 Jul 2017 10:28:00 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 28 Aug 2017 07:08:18 PM UTC, comment #3: 

Released in 2.8.7.

Benno Schulenberg <bens>
Group administrator
Sun 06 Aug 2017 07:57:56 AM UTC, comment #2: 

Fixed in git, 884d410d.  Thanks for reporting.

(Alexandre hasn't reported back, so... we'll just see if the underlying bug really has been fixed.)

Benno Schulenberg <bens>
Group administrator
Sat 22 Jul 2017 07:57:29 PM UTC, comment #1: 

Thanks for the suggestion.  I've been planning to restore those symmetrical opening and closing triple quotes ever since nano-2.7.5, but didn't get around to it.  I've requested the original reporter of the problem that led to requiring a trailing character after an opening triple quote to test the patch:

http://lists.gnu.org/archive/html/nano-devel/2017-07/msg00041.html

Benno Schulenberg <bens>
Group administrator
Fri 21 Jul 2017 10:28:00 AM UTC, original submission:  

Hi there,

When working with Python files, I've noticed that triple quotes at the end of the line aren't highlighted as strings, despite them being valid in Python. This seems odd as it recognises triple quotes at the beginning of a line!

Attached is a patch for the python.nanorc file which fixes this.

Best,
Peter

Peter <exodus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #41275:  python-triple-quotes.patch added by exodus (574B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by exodus (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-28 bens Open/ClosedOpen Closed
    2017-08-06 bens StatusNeed Info Fixed
    2017-07-22 bens StatusNone Need Info
        Assigned toNone bens
        SummaryPython syntax highlighting - triple quotes at end of line. Python syntax highlighting -- opening triple quotes at end of line
    2017-07-21 exodus Attached File- Added python-triple-quotes.patch, #41275

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code