mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
Fixup format (#5934)
* fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
This commit is contained in:
parent
f5a839d1e8
commit
d198a75e2c
35 changed files with 47 additions and 3 deletions
|
|
@ -39,6 +39,7 @@
|
|||
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))))
|
||||
]
|
||||
operator: "=")
|
||||
|
||||
; Stab Clause Definitions
|
||||
; format-ignore
|
||||
(stab_clause
|
||||
|
|
@ -98,6 +99,7 @@
|
|||
])
|
||||
operator: "when")
|
||||
])
|
||||
|
||||
; Aliases
|
||||
; format-ignore
|
||||
(call
|
||||
|
|
@ -155,6 +157,7 @@
|
|||
]))
|
||||
]?)
|
||||
(#set! definition.function.scope parent)(do_block)?) @local.scope
|
||||
|
||||
; ExUnit Test Definitions & Scopes
|
||||
; format-ignore
|
||||
(call
|
||||
|
|
@ -193,5 +196,6 @@
|
|||
])
|
||||
])
|
||||
(do_block)?) @local.scope
|
||||
|
||||
; Stab Clause Scopes
|
||||
(stab_clause) @local.scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue