mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
|
@ -40,11 +40,10 @@
|
|||
|
||||
(let_binding
|
||||
pattern: (value_name) @function
|
||||
body:
|
||||
[
|
||||
(fun_expression)
|
||||
(function_expression)
|
||||
])
|
||||
body: [
|
||||
(fun_expression)
|
||||
(function_expression)
|
||||
])
|
||||
|
||||
(value_specification
|
||||
(value_name) @function)
|
||||
|
|
@ -57,23 +56,20 @@
|
|||
; Application
|
||||
;------------
|
||||
(infix_expression
|
||||
left:
|
||||
(value_path
|
||||
(value_name) @function.call)
|
||||
left: (value_path
|
||||
(value_name) @function.call)
|
||||
operator: (concat_operator) @_operator
|
||||
(#eq? @_operator "@@"))
|
||||
|
||||
(infix_expression
|
||||
operator: (rel_operator) @_operator
|
||||
right:
|
||||
(value_path
|
||||
(value_name) @function.call)
|
||||
right: (value_path
|
||||
(value_name) @function.call)
|
||||
(#eq? @_operator "|>"))
|
||||
|
||||
(application_expression
|
||||
function:
|
||||
(value_path
|
||||
(value_name) @function.call))
|
||||
function: (value_path
|
||||
(value_name) @function.call))
|
||||
|
||||
((value_name) @function.builtin
|
||||
(#any-of? @function.builtin "raise" "raise_notrace" "failwith" "invalid_arg"))
|
||||
|
|
|
|||
|
|
@ -28,16 +28,14 @@
|
|||
(#set! definition.var.scope "parent"))
|
||||
|
||||
(let_binding
|
||||
pattern:
|
||||
(tuple_pattern
|
||||
(value_name) @local.definition.var)
|
||||
pattern: (tuple_pattern
|
||||
(value_name) @local.definition.var)
|
||||
(#set! definition.var.scope "parent"))
|
||||
|
||||
(let_binding
|
||||
pattern:
|
||||
(record_pattern
|
||||
(field_pattern
|
||||
(value_name) @local.definition.var))
|
||||
pattern: (record_pattern
|
||||
(field_pattern
|
||||
(value_name) @local.definition.var))
|
||||
(#set! definition.var.scope "parent"))
|
||||
|
||||
(external
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue