MagicStack / MagicStack/MagicPython
Is it possible to highlight all decorators the same?
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
* **Editor name and version**: VS Code 1.33.0
* **Platform**: Windows 10 1809
* **Color scheme**: Pycharm Dracula Style (WIP)
* **MagicPython version**: 1.1.0
First of all congrats on the great project!
I've begun working on a theme to make VS Code look similar to PyCharm. I would like to have all decorators highlighted with the same color regardless of type. At the moment the scope 'support.type.python' is prioritized over 'meta.function.decorator.python'. You can see this demonstrated in the example below for the property decorator. I get why the current order is more desirable, but is it possible to somehow override it within the theme?

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing how Python decorators are assigned the `support.type.python` and `meta.function.decorator.python` scopes in the syntax highlighter, then check how VS Code theme scope precedence handles them. Done means determining whether a theme can consistently color all decorators and documenting or implementing the supported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100