mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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))
|
(named_node) ; ((foo))
|
||||||
(list) ; ([foo] (...))
|
(list) ; ([foo] (...))
|
||||||
(anonymous_node) ; ("foo")
|
(anonymous_node) ; ("foo")
|
||||||
|
(grouping . (_))
|
||||||
] @format.indent.begin
|
] @format.indent.begin
|
||||||
.
|
.
|
||||||
(_))
|
(_))
|
||||||
(grouping
|
|
||||||
"("
|
|
||||||
.
|
|
||||||
(grouping . (_)) @format.indent.begin
|
|
||||||
.
|
|
||||||
(_))
|
|
||||||
(grouping
|
(grouping
|
||||||
"("
|
"("
|
||||||
.
|
.
|
||||||
|
|
@ -225,6 +220,7 @@ local format_queries = [[
|
||||||
(named_node)
|
(named_node)
|
||||||
(list)
|
(list)
|
||||||
(predicate)
|
(predicate)
|
||||||
|
(grouping . (_))
|
||||||
"."
|
"."
|
||||||
] @format.append-newline
|
] @format.append-newline
|
||||||
(_) .)
|
(_) .)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue