Commit 556da23
committed
Allow folding indented code blocks below ‘when’ statements
Since when statements can have their code “inline”, e.g. “when match: do_something” we match lines with ‘when’ keywords either not containing any ‘then’ or colon (‘:’), or where ‘then’ or colon are the last things on the line (except for a trailing line comment).1 parent 05698e9 commit 556da23
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
0 commit comments