Skip to content

Commit d4f888e

Browse files
committed
Document indentation after old-style if, while, for
Fixes #12090
1 parent bed1c4a commit d4f888e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/docs/reference/other-new-features/indentation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ There are two rules:
6868
if match return then throw try while yield
6969
```
7070

71+
- after the closing `)` of a condition in an old-style `if` or `while`.
72+
- after the closing `)` or `}` of the enumerations of an old-style `for` loop without a `do`.
73+
7174
If an `<indent>` is inserted, the indentation width of the token on the next line
7275
is pushed onto `IW`, which makes it the new current indentation width.
7376

0 commit comments

Comments
 (0)