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

 
 

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

Submitted by:  Peter <exodus>
Submitted on:  Fri 21 Jul 2017 10:28:00 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Released in 2.8.7.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by exodus (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Aug 2017 07:08:18 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 06 Aug 2017 07:57:56 AM UTCbensStatusNeed Info=>Fixed
    Sat 22 Jul 2017 07:57:29 PM UTCbensStatusNone=>Need Info
      Assigned toNone=>bens
      SummaryPython syntax highlighting - triple quotes at end of line.=>Python syntax highlighting -- opening triple quotes at end of line
    Fri 21 Jul 2017 10:28:00 AM UTCexodusAttached File-=>Added python-triple-quotes.patch, #41275

    Back to the top


    Powered by Savane 3.1-cleanup1