mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -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
|
|
@ -50,12 +50,11 @@
|
|||
|
||||
; As are arguments in a block statement
|
||||
(block_statement_start
|
||||
argument:
|
||||
[
|
||||
(path_expression
|
||||
(identifier) @variable)
|
||||
(identifier) @variable
|
||||
])
|
||||
argument: [
|
||||
(path_expression
|
||||
(identifier) @variable)
|
||||
(identifier) @variable
|
||||
])
|
||||
|
||||
; As is an identifier in a block param
|
||||
(block_params
|
||||
|
|
@ -63,12 +62,11 @@
|
|||
|
||||
; As are helper arguments
|
||||
((helper_invocation
|
||||
argument:
|
||||
[
|
||||
(path_expression
|
||||
(identifier) @variable)
|
||||
(identifier) @variable
|
||||
])
|
||||
argument: [
|
||||
(path_expression
|
||||
(identifier) @variable)
|
||||
(identifier) @variable
|
||||
])
|
||||
(#not-eq? @variable "this"))
|
||||
|
||||
; `this` should be highlighted as a built-in variable
|
||||
|
|
@ -82,12 +80,11 @@
|
|||
|
||||
; Helpers are functions
|
||||
((helper_invocation
|
||||
helper:
|
||||
[
|
||||
(path_expression
|
||||
(identifier) @function)
|
||||
(identifier) @function
|
||||
])
|
||||
helper: [
|
||||
(path_expression
|
||||
(identifier) @function)
|
||||
(identifier) @function
|
||||
])
|
||||
(#not-any-of? @function "if" "yield"))
|
||||
|
||||
((helper_invocation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue