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:
1 parent
2cbd50e063
commit
96eda15897
1 file changed
+25
@@ -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
|
||||
|
||||
Reference in new issue
Block a user