mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -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
|
|
@ -1,9 +1,8 @@
|
|||
body:
|
||||
[
|
||||
(declaration_list)
|
||||
(switch_body)
|
||||
(enum_member_declaration_list)
|
||||
] @fold
|
||||
body: [
|
||||
(declaration_list)
|
||||
(switch_body)
|
||||
(enum_member_declaration_list)
|
||||
] @fold
|
||||
|
||||
accessors: (accessor_list) @fold
|
||||
|
||||
|
|
|
|||
|
|
@ -32,28 +32,25 @@
|
|||
name: (identifier) @function.method.call))
|
||||
|
||||
(invocation_expression
|
||||
function:
|
||||
(conditional_access_expression
|
||||
(member_binding_expression
|
||||
name: (identifier) @function.method.call)))
|
||||
function: (conditional_access_expression
|
||||
(member_binding_expression
|
||||
name: (identifier) @function.method.call)))
|
||||
|
||||
(namespace_declaration
|
||||
name:
|
||||
[
|
||||
(qualified_name)
|
||||
(identifier)
|
||||
] @module)
|
||||
name: [
|
||||
(qualified_name)
|
||||
(identifier)
|
||||
] @module)
|
||||
|
||||
(qualified_name
|
||||
(identifier) @type)
|
||||
|
||||
(namespace_declaration
|
||||
name:
|
||||
[
|
||||
(qualified_name
|
||||
(identifier) @module)
|
||||
(identifier) @module
|
||||
])
|
||||
name: [
|
||||
(qualified_name
|
||||
(identifier) @module)
|
||||
(identifier) @module
|
||||
])
|
||||
|
||||
(invocation_expression
|
||||
(identifier) @function.method.call)
|
||||
|
|
@ -184,16 +181,14 @@
|
|||
(identifier) @type))
|
||||
|
||||
(_
|
||||
type:
|
||||
(generic_name
|
||||
(identifier) @type))
|
||||
type: (generic_name
|
||||
(identifier) @type))
|
||||
|
||||
; Generic Method invocation with generic type
|
||||
(invocation_expression
|
||||
function:
|
||||
(generic_name
|
||||
.
|
||||
(identifier) @function.method.call))
|
||||
function: (generic_name
|
||||
.
|
||||
(identifier) @function.method.call))
|
||||
|
||||
(invocation_expression
|
||||
(member_access_expression
|
||||
|
|
|
|||
|
|
@ -14,9 +14,8 @@
|
|||
left: (identifier) @local.definition.var)
|
||||
|
||||
(for_each_statement
|
||||
left:
|
||||
(tuple_pattern
|
||||
(identifier) @local.definition.var))
|
||||
left: (tuple_pattern
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
(parameter
|
||||
(identifier) @local.definition.parameter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue