rouge
rouge copied to clipboard
Add syntax highlighting for Python match-case statements
This adds support for Python 3.10's match/case syntax.
Changes:
- Added
matchandcaseto 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!
Duplicate of https://github.com/rouge-ruby/rouge/pull/1981.