mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
refactor(format): drop extra indentation for field
This commit is contained in:
parent
c28396de30
commit
722617e672
140 changed files with 2146 additions and 2766 deletions
|
|
@ -201,16 +201,6 @@ local format_queries = [[
|
|||
|
||||
;; Workaround to just use the string's content
|
||||
(anonymous_node (identifier) @format.keep)
|
||||
(field_definition
|
||||
name: (_)
|
||||
":" @format.indent.begin @format.append-newline ; suppress trailing whitespaces with forced newlines
|
||||
[
|
||||
(named_node [ (named_node) (list) (grouping) (anonymous_node) (field_definition) ])
|
||||
(list "[" . (_) . (_) "]")
|
||||
(grouping "(" . (_) . (_) ")")
|
||||
(grouping
|
||||
quantifier: (quantifier))
|
||||
])
|
||||
|
||||
; ( (_) ) handler
|
||||
(grouping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue