mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(scripts): add missing \n for nested grouping
This commit is contained in:
parent
4b27f87fef
commit
917d696592
1 changed files with 2 additions and 6 deletions
|
|
@ -204,15 +204,10 @@ local format_queries = [[
|
|||
(named_node) ; ((foo))
|
||||
(list) ; ([foo] (...))
|
||||
(anonymous_node) ; ("foo")
|
||||
(grouping . (_))
|
||||
] @format.indent.begin
|
||||
.
|
||||
(_))
|
||||
(grouping
|
||||
"("
|
||||
.
|
||||
(grouping . (_)) @format.indent.begin
|
||||
.
|
||||
(_))
|
||||
(grouping
|
||||
"("
|
||||
.
|
||||
|
|
@ -225,6 +220,7 @@ local format_queries = [[
|
|||
(named_node)
|
||||
(list)
|
||||
(predicate)
|
||||
(grouping . (_))
|
||||
"."
|
||||
] @format.append-newline
|
||||
(_) .)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue