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:
parent
9810745465
commit
05a6c31ad8
1 changed files with 25 additions and 0 deletions
|
@ -24,6 +24,31 @@
|
||||||
body: (block) @indent
|
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
|
(try_statement
|
||||||
":" @start
|
":" @start
|
||||||
body: (block) @indent
|
body: (block) @indent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue