Summary: | JJ: Use rainbow-coloring for top-level variables in some cases | ||
---|---|---|---|
Product: | [Developer tools] kdev-python | Reporter: | Sven Brauch <mail> |
Component: | Language support | Assignee: | Sven Brauch <mail> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | 1.6.0 | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdev-python/6cc8c6bdfd3692f05d0fa0c4808efdda7efc53a9 | Version Fixed In: | |
Sentry Crash Report: |
Description
Sven Brauch
2013-09-19 13:37:23 UTC
Correction: instead of looking at isFunctionDeclaration(), it'd be better to look if the declarations' internalContext() is 0 or not, since that'll also catch class declarations. Git commit 6cc8c6bdfd3692f05d0fa0c4808efdda7efc53a9 by Sven Brauch, on behalf of Benjamin Kaiser. Committed on 26/11/2013 at 16:31. Pushed by brauch into branch 'master'. Rainbow color-highlighting for top-level variables Enable rainbow-color highlighting for top-level variables if there are no class or function declarations. Currently it's also disabled if there are imports, although more by accident than intentionally. REVIEW:114138 GCI-TASK:5846685427171328 M +23 -1 pythonhighlighting.cpp M +4 -0 pythonhighlighting.h http://commits.kde.org/kdev-python/6cc8c6bdfd3692f05d0fa0c4808efdda7efc53a9 |