rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Add syntax highlighting for Python match-case statements

Open Cheesecake2960 opened this issue 6 months ago • 1 comments

This adds support for Python 3.10's match/case syntax.

Changes:

  • Added match and case to the list of Python keywords in the lexer
  • Updated the visual sample for Python syntax highlighting (in spec/visual/samples/python)

This is part of Python 3.10's structural pattern matching feature.


This is my first contribution to Rouge. I'm happy to receive any feedback!

Cheesecake2960 avatar Jun 06 '25 12:06 Cheesecake2960

Duplicate of https://github.com/rouge-ruby/rouge/pull/1981.

tancnle avatar Jun 18 '25 02:06 tancnle