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

@ -137,9 +137,8 @@
((assignment
left: (python_identifier) @type.definition
right:
(call
function: (python_identifier) @_func))
right: (call
function: (python_identifier) @_func))
(#any-of? @_func "TypeVar" "NewType"))
; Fields
@ -154,18 +153,16 @@
function: (python_identifier) @function.call)
(call
function:
(attribute
attribute: (python_identifier) @function.method.call))
function: (attribute
attribute: (python_identifier) @function.method.call))
((call
function: (python_identifier) @constructor)
(#lua-match? @constructor "^%u"))
((call
function:
(attribute
attribute: (python_identifier) @constructor))
function: (attribute
attribute: (python_identifier) @constructor))
(#lua-match? @constructor "^%u"))
((call
@ -191,10 +188,9 @@
((call
function: (python_identifier) @_isinstance
arguments:
(argument_list
(_)
(python_identifier) @type))
arguments: (argument_list
(_)
(python_identifier) @type))
(#eq? @_isinstance "isinstance"))
(anonymous_python_function
@ -216,11 +212,10 @@
(identifier) @function)
(python_function_definition
body:
(block
.
(expression_statement
(python_string) @string.documentation @spell)))
body: (block
.
(expression_statement
(python_string) @string.documentation @spell)))
; Namespace
(inherit_path) @module