Bug 377720 - Variable names in comments are highlighted
Summary: Variable names in comments are highlighted
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: 5.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 11:47 UTC by Vishesh Handa
Modified: 2017-03-22 19:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vishesh Handa 2017-03-17 11:47:09 UTC
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?
Comment 1 Sven Brauch 2017-03-17 17:05:39 UTC
Known issue, it's an edge case in the parser which is somehow hard to fix.
Comment 2 Francis Herne 2017-03-22 19:36:00 UTC
This is fixed in 5.1