[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 76334] New: Python highlight mode suggestion
From:       Adrian Holovaty <kde () holovaty ! com>
Date:       2004-02-28 6:36:31
Message-ID: 20040228063631.10074.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=76334      
           Summary: Python highlight mode suggestion
           Product: kate
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel kde org
        ReportedBy: kde holovaty com


Version:            (using KDE KDE 3.2.0)
Installed from:    RedHat RPMs

The Kate syntax highlighting correctly colors a multi-line Python docstring in gray. \
But it colors single-line docstrings in red. It would be more consistent if all \
docstrings were colored in gray, regardless of whether they were single-line or \
multi-line.

Example of a single-line docstring:

def test_single():
    "Returns the sum of 10 and 20"
    return 10 + 20

Example of a multi-line docstring:

def test_double():
    """This is an overly long docstring for an overly redundant
    function that returns the sum of 10 and 20"""
    return 10 + 20

If you (Kate developers) decide this change is worth making, please note that \
docstrings are allowed in several places -- as outlined by the official Python PEP:

http://www.python.org/peps/pep-0257.html
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic