blob: 9f62f9d96912a6e393b3aa9d0d5581c6b0094992 (
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
|
; Scopes
(compilation_unit) @local.scope
(decl_class
body: (_) @local.scope)
(decl_enum
body: (_) @local.scope)
(decl_method) @local.scope
(block) @local.scope
(if) @local.scope
(for) @local.scope
(foreach) @local.scope
(while) @local.scope
; Definitions
(decl_class
typename: (identifier) @local.definition.type)
(decl_enum
typename: (identifier) @local.definition.enum)
(decl_method
name: (identifier) @local.definition.method)
(decl_variable
(_)*
(identifier) @local.definition.var)
; References
(identifier) @local.reference
(type_identifier
(identifier) @local.reference)
|