languages: Fix python indent block for more keywords (#30323)

Add `with`, `while`, `match`, `class` and `case` keywords as indent
block.

Release Notes:

- N/A
This commit is contained in:
Smit Barmase 2025-05-08 17:21:33 -07:00 committed by GitHub
parent 9810745465
commit 05a6c31ad8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,31 @@
body: (block) @indent
)
(with_statement
":" @start
body: (block) @indent
)
(while_statement
":" @start
body: (block) @indent
)
(match_statement
":" @start
body: (block) @indent
)
(class_definition
":" @start
body: (block) @indent
)
(case_clause
":" @start
consequence: (block) @indent
)
(try_statement
":" @start
body: (block) @indent