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

45 lines
678 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
2022-11-05 19:30:40 +01:00
(slurp_parameter
(identifier) @local.definition)
(function_expression
. (identifier) @local.definition)
; ------
; Scopes
; ------
2021-07-04 14:24:33 +02:00
[
(function_definition)
2022-11-05 19:30:40 +01:00
(short_function_definition)
(macro_definition)
2021-12-17 08:54:18 +01:00
] @local.scope
; ----------
; References
; ----------
(identifier) @local.reference