Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Is it possible to highlight all decorators the same?

Open
#178 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode
Domain
tooling

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.

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?

decorator_example

Dominant language
JavaScript
Stars
1.4k
Forks
98
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MagicStack/MagicPython

All issues in MagicStack/MagicPython

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.