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

@ -106,36 +106,34 @@
] @operator
(binary_expression
operator:
[
">"
"<"
"=="
"==="
"!=="
"&&"
"||"
"+"
"-"
"*"
"/"
"&"
"|"
"^"
"%"
"<<"
">>"
">>>"
] @operator)
operator: [
">"
"<"
"=="
"==="
"!=="
"&&"
"||"
"+"
"-"
"*"
"/"
"&"
"|"
"^"
"%"
"<<"
">>"
">>>"
] @operator)
(unary_expression
operator:
[
"+"
"-"
"!"
"~"
]) @operator
operator: [
"+"
"-"
"!"
"~"
]) @operator
(map_initializer
"=>" @operator)
@ -147,9 +145,8 @@
; Fields
(field_declaration
declarator:
(variable_declarator
name: (identifier) @variable.member))
declarator: (variable_declarator
name: (identifier) @variable.member))
(field_access
field: (identifier) @variable.member)

View file

@ -48,9 +48,8 @@
name: (identifier) @local.definition.method)
(local_variable_declaration
declarator:
(variable_declarator
name: (identifier) @local.definition.var))
declarator: (variable_declarator
name: (identifier) @local.definition.var))
(enhanced_for_statement
name: (identifier) @local.definition.var)
@ -62,9 +61,8 @@
name: (identifier) @local.definition.parameter)
(field_declaration
declarator:
(variable_declarator
name: (identifier) @local.definition.field))
declarator: (variable_declarator
name: (identifier) @local.definition.field))
; REFERENCES
(identifier) @local.reference