refactor(format): drop extra indentation for field

This commit is contained in:
Phạm Huy Hoàng 2024-03-21 20:44:35 +09:00 committed by Christian Clason
parent c28396de30
commit 722617e672
140 changed files with 2146 additions and 2766 deletions

View file

@ -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