summaryrefslogtreecommitdiff
path: root/runtime/queries/matlab/context.scm
blob: 725c10ca0318d70c2d7a50a1169f6b95ed233ff7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(function_definition
  (block (_) @context.end)
) @context

(while_statement
  (block (_) @context.end)
) @context

(for_statement
  (block (_) @context.end)
) @context

(if_statement
  (block (_) @context.end)
) @context

(elseif_clause
  (block (_) @context.end)
) @context

(else_clause
  (block (_) @context.end)
) @context

(switch_statement) @context

(case_clause
  (block (_) @context.end)
) @context

(otherwise_clause
  (block (_) @context.end)
) @context

(try_statement
  "try"
  (block (_) @context.end) @context
  "end")
(catch_clause
  "catch"
  (block (_) @context.end) @context)