Fix TypeScript block indenting when using allman style (#25051)
Closes #24976 Release Notes: - Fixed an issue where writing TypeScript using Allman style would result in incorrect auto-indent behavior
This commit is contained in:
parent
888dc0b344
commit
12aa270b9a
1 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@
|
||||||
(lexical_declaration)
|
(lexical_declaration)
|
||||||
(variable_declaration)
|
(variable_declaration)
|
||||||
(assignment_expression)
|
(assignment_expression)
|
||||||
(if_statement)
|
; below handled by `(_ "{" "}" @end) @indent`
|
||||||
(for_statement)
|
; (if_statement)
|
||||||
|
; (for_statement)
|
||||||
|
; (while_statement)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
(_ "[" "]" @end) @indent
|
(_ "[" "]" @end) @indent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue