aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/firrtl/locals.scm
blob: 97b7931bffba758a51a560377ce5dd71e2995f20 (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
42
43
44
45
; Scopes
[
  (source_file)
  (circuit)
  (module)
  (else)
  (when)
] @local.scope

; References
(identifier) @local.reference

; Definitions
(port
  (identifier) @local.definition.field)

(wire
  (identifier) @local.definition.field)

(cmem
  (identifier) @local.definition.field)

(smem
  (identifier) @local.definition.field)

(memory
  (identifier) @local.definition.field)

(register
  (identifier) @local.definition.field)

(circuit
  (identifier) @local.definition.namespace)

(module
  (identifier) @local.definition.namespace)

(parameter
  (identifier) @local.definition.parameter)

(rdwr
  (identifier) @local.definition.var)

(node
  (identifier) @local.definition.var)