mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
799 B
Scheme
45 lines
799 B
Scheme
2 years ago
|
;; Scopes
|
||
|
|
||
|
[
|
||
|
(module)
|
||
|
(function_definition)
|
||
|
(lambda)
|
||
|
] @local.scope
|
||
|
|
||
|
;; Definitions
|
||
|
|
||
|
; Parameters
|
||
|
(parameters
|
||
|
(identifier) @local.definition)
|
||
|
(parameters
|
||
|
(typed_parameter
|
||
|
(identifier) @local.definition))
|
||
|
(parameters
|
||
|
(default_parameter
|
||
|
name: (identifier) @local.definition))
|
||
|
(parameters
|
||
|
(typed_default_parameter
|
||
|
name: (identifier) @local.definition))
|
||
|
(parameters
|
||
|
(list_splat_pattern ; *args
|
||
|
(identifier) @local.definition))
|
||
|
(parameters
|
||
|
(dictionary_splat_pattern ; **kwargs
|
||
|
(identifier) @local.definition))
|
||
|
|
||
|
(lambda_parameters
|
||
|
(identifier) @local.definition)
|
||
|
|
||
|
; Imports
|
||
|
(import_statement
|
||
|
name: (dotted_name
|
||
|
(identifier) @local.definition))
|
||
|
|
||
|
(aliased_import
|
||
|
alias: (identifier) @local.definition)
|
||
|
|
||
|
;; References
|
||
|
|
||
|
(identifier) @local.reference
|
||
|
|