Skip to content

Support match and case keywords in Python #2140

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

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

tancnle
Copy link
Collaborator

@tancnle tancnle commented Jun 27, 2025

This PRs adds support to highligt match, case and _ "soft keywords" in Python lexer. Soft keywords are considered keywords only in specific parts of the syntax keywords in Python lexer (see doc). The implementation is ported from Pygments pygments/pygments#1994.

Before After
Screenshot 2025-06-26 at 3 17 29 pm Screenshot 2025-06-26 at 3 48 40 pm

@tancnle tancnle added this pull request to the merge queue Jul 7, 2025
Merged via the queue into rouge-ruby:master with commit f522e6c Jul 7, 2025
9 checks passed
@tancnle tancnle deleted the match-case-python branch July 7, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant