Commit 735da57
committed
Fix #9790: Update indentation spec to match observed behavior
I added the clause
2. An `<outdent>` is inserted at a line break, if
- ...
- the last token on the previous line is not one of the following tokens
which indicate that the previous statement continues:
```
then else do catch finally yield match
```
I tried to do without the added clause but lots of tests break. To verify, set
Tokens.statCtdTokens to BitSet() and observe the breakage.1 parent 93f24a0 commit 735da57
File tree
2 files changed
+12
-0
lines changed- docs/docs/reference/other-new-features
- tests/neg
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments