fix(format): fix nested grouping indentation (#6128)

This commit is contained in:
Phạm Huy Hoàng 2024-02-18 23:13:39 +09:00 committed by GitHub
parent 5e4b657181
commit fef26b5eee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -206,10 +206,15 @@ local format_queries = [[
(named_node) ; ((foo))
(list) ; ([foo] (...))
(anonymous_node) ; ("foo")
(grouping . (anonymous_node)) ; (("foo"))
] @format.indent.begin
.
(_))
(grouping
"("
.
(grouping . (_)) @format.indent.begin
.
(_))
(grouping
"("
.