bugGNU nano - Bugs: bug #34323, too greedy highlighting of...

 
 

bug #34323: too greedy highlighting of docstrings in Python

Submitted by:  None
Submitted on:  Sat 17 Sep 2011 10:34:53 PM UTC  
 
Severity:  3 - Normal Status:  Duplicate
Assigned to:  None 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 24 Feb 2014 01:12:05 PM UTC, comment #2:

Marking this as a duplicate of bug #41313 and bug #26762,
ande closing because the PNGs are inaccessible.

Benno Schulenberg <bens>
Project Administrator
Wed 22 Jan 2014 08:48:33 PM UTC, comment #1:

Also reported as bug #41313, because I cannot see your PNGs.
Can you confirm that the example file attached there shows the problem you saw?

Benno Schulenberg <bens>
Project Administrator
Sat 17 Sep 2011 10:34:53 PM UTC, original submission:

Sorry for my lame english :)

I have syntax highlighting for python files as it specified in the attached file (or http://pastebin.com/tGWXdw1W)

Brifly, docstrings higlighting rules are:
icolor brightgreen start="(b|u)?r?"""" end="""""
icolor green start="(b|u)?r?'''" end="'''"

When it just opened, then looks fine
http://ompldr.org/vYWU5eg/nano1.png

But after some editions nano highlights to the green too "greedy",
maybe cause of start and end patterns are very similar.
http://ompldr.org/vYWVhMA/nano2.png

Is it a bug of nano or my syntax file?

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #23987:  python.nanorc added by None (1KiB - application/octet-stream)

 

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)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-24 bens StatusNone => Duplicate
        Open/ClosedOpen => Closed
        SummaryMaybe incorrect highlighting => too greedy highlighting of docstrings in Python
    2011-09-17 None Attached File- => Added python.nanorc, #23987

    Back to the top


    Powered by Savane 3.3