mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Namely, for their case clauses and inner comments. Right now, each of them is indented on its own, as a separate formatting block. It's still not entirely clear whether we should have a dedicated indented container element for case clauses, similar to PyStatementList for statements. It might simplify the formatter and some editing actions, but cause confusion between the two container elements. GitOrigin-RevId: 69184d2f8f78e2e113e8f40a310bb13ac0b5e71a
12 lines
186 B
Python
12 lines
186 B
Python
match x:
|
|
# first 1
|
|
# first 2
|
|
case 1:
|
|
pass
|
|
# intermediate 1
|
|
# intermediate 2
|
|
case 2:
|
|
pass
|
|
# trailing 1
|
|
# trailing 2
|
|
# unrelated |