helix-mirror/runtime/queries/julia/locals.scm

44 lines
649 B
Scheme
Raw Normal View History

; -----------
; Definitions
; -----------
2021-07-04 16:24:33 +04:00
; Imports
2021-07-04 16:24:33 +04:00
(import_statement
(identifier) @local.definition)
; Constants
(const_statement
(variable_declaration
. (identifier) @local.definition))
2021-07-04 16:24:33 +04:00
; Parameters
2021-07-04 16:24:33 +04:00
(parameter_list
(identifier) @local.definition)
2021-07-04 16:24:33 +04:00
(typed_parameter
. (identifier) @local.definition)
2021-07-04 16:24:33 +04:00
(optional_parameter .
(identifier) @local.definition)
2021-07-04 16:24:33 +04:00
(spread_parameter
(identifier) @local.definition)
(function_expression
. (identifier) @local.definition)
; ------
; Scopes
; ------
2021-07-04 16:24:33 +04:00
[
(function_definition)
(macro_definition)
2021-12-17 11:54:18 +04:00
] @local.scope
; ----------
; References
; ----------
(identifier) @local.reference