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

44 lines
649 B
Scheme
Raw Normal View History

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