Fix auto-indent for braceless if/for/while in TypeScript (#60708)

type `if (true)`, hit enter, nothing indents. same for for/while.

12aa270 commented these out to stop allman braces over-indenting
(#24976). fixed that, broke this. put them back with an optional `@end`
on the `{}` body so braced blocks stop before the brace and braceless
ones indent. same in tsx.

Fixes #60371.

Release Notes:

- Fixed TypeScript and TSX not auto-indenting the body of a braceless
`if`, `for`, or `while`

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
1a246efd7eApoorva Verma committed on 7/15/2026, 11:29:16 PM· committed by GitHubparent367cd75
3 files changedLine totals unavailable