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


bug #34323: too greedy highlighting of docstrings in Python

Submitted by:  None
Submitted on:  Sat Sep 17 22:34:53 2011  
Severity: 3 - NormalStatus: Duplicate
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Mon Feb 24 13:12:05 2014, 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 Jan 22 20:48:33 2014, 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 Sep 17 22:34:53 2011, 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 (1kB - 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 Feb 24 13:12:05 2014bensStatusNone=>Duplicate
      SummaryMaybe incorrect highlighting=>too greedy highlighting of docstrings in Python
    Sat Sep 17 22:34:53 2011NoneAttached File-=>Added python.nanorc, #23987

    Back to the top

    Powered by Savane 3.1-cleanup1