https://bugs.kde.org/show_bug.cgi?id=377720

            Bug ID: 377720
           Summary: Variable names in comments are highlighted
           Product: kdev-python
           Version: 5.0.3
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: m...@svenbrauch.de
          Reporter: m...@vhanda.in
                CC: m...@svenbrauch.de
  Target Milestone: ---

Example -

class Example:
    def __init__(self):
        self.producer = None

    def run(self):
        foo(None, self.producer)
        # Do we need to poll for the producer?

When placing the cursor over the word 'producer' in the comment, the variable
in __init__ is highlighted. The variable is not highlighted in the call to foo.

Changing the value of the variable fixes it -

class Example:
    def __init__(self):
        self.producer = None

    def run(self):
        foo(None, self.producer)
        self.producer = None
        # Do we need to poll for the producer?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to