summaryrefslogtreecommitdiff
path: root/runtime/queries/matlab/locals.scm
blob: d0589a1dbb0238331dae20f91cc5237461779b07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(function_definition name: (identifier) @local.definition ?) @local.scope
(function_arguments (identifier)* @local.definition)

(lambda (arguments (identifier) @local.definition)) @local.scope

(assignment left: ((function_call
                     name: (identifier) @local.definition)))
(assignment left: ((field_expression . [(function_call
                                          name: (identifier) @local.definition)
                                        (identifier) @local.definition])))
(assignment left: (_) @local.definition)
(assignment (multioutput_variable (_) @local.definition))

(iterator . (identifier) @local.definition)
(global_operator (identifier) @local.definition)
(persistent_operator (identifier) @local.definition)
(catch_clause (identifier) @local.definition)

(identifier) @local.reference