Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: Fix and improve highlighting #25813

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrSubidubi
Copy link
Contributor

Closes #25803
Closes #25707

This PR fixes the highlighting regression described in #25803 by fixing the priorities of highlights as described in the comment within the file itself. A nice side-effect of this is that scoped constants or other identifiers are now also more accurately highlighted, as seen in the screenshots below.

While I was at it, I also adressed the highlighting issue for default typed idenfiers.

This PR PR
Preview preview
Stable stable

Release Notes:

  • Fixed constants not being highlighted in Python-files.
  • Improved Python-highlighting for default function arguments and scoped identifiers.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python syntax highlighting regression Python default arguments not highlighted
1 participant