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 - NormalStatus: Duplicate
Assigned to: NoneOpen/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

But after some editions nano highlights to the green too "greedy",
maybe cause of start and end patterns are very similar.

Is it a bug of nano or my syntax file?



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

Attach File(s):

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

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Feb 2014 01:12:05 PM UTCbensStatusNone=>Duplicate
      SummaryMaybe incorrect highlighting=>too greedy highlighting of docstrings in Python
    Sat 17 Sep 2011 10:34:53 PM UTCNoneAttached File-=>Added python.nanorc, #23987

    Back to the top

    Powered by Savane 3.1-cleanup1