mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 11:57:43 +03:00
queries: Rewrite all locals
This commit is contained in:
parent
8ead488fd5
commit
ac88096c98
50 changed files with 159 additions and 535 deletions
|
@ -10,33 +10,33 @@
|
|||
|
||||
; Parameters
|
||||
(parameters
|
||||
(identifier) @local.definition)
|
||||
(identifier) @local.definition.variable.parameter)
|
||||
(parameters
|
||||
(typed_parameter
|
||||
(identifier) @local.definition))
|
||||
(identifier) @local.definition.variable.parameter))
|
||||
(parameters
|
||||
(default_parameter
|
||||
name: (identifier) @local.definition))
|
||||
name: (identifier) @local.definition.variable.parameter))
|
||||
(parameters
|
||||
(typed_default_parameter
|
||||
name: (identifier) @local.definition))
|
||||
name: (identifier) @local.definition.variable.parameter))
|
||||
(parameters
|
||||
(list_splat_pattern ; *args
|
||||
(identifier) @local.definition))
|
||||
(identifier) @local.definition.variable.parameter))
|
||||
(parameters
|
||||
(dictionary_splat_pattern ; **kwargs
|
||||
(identifier) @local.definition))
|
||||
(identifier) @local.definition.variable.parameter))
|
||||
|
||||
(lambda_parameters
|
||||
(identifier) @local.definition)
|
||||
(identifier) @local.definition.variable.parameter)
|
||||
|
||||
; Imports
|
||||
(import_statement
|
||||
name: (dotted_name
|
||||
(identifier) @local.definition))
|
||||
(identifier) @local.definition.namespace))
|
||||
|
||||
(aliased_import
|
||||
alias: (identifier) @local.definition)
|
||||
alias: (identifier) @local.definition.namespace)
|
||||
|
||||
;; References
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue