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

 
 

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

bug #34323: too greedy highlighting of docstrings in Python

Submitter:  None
Submitted:  Sat 17 Sep 2011 10:34:53 PM UTC
   
 
Severity:  3 - Normal Status:  Duplicate
Assigned to:  None Open/Closed:  Closed

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>
Group 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>
Group 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.)

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

    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 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.13-cf05.
    Corresponding source code