2023-03-26 18:37:15 -04:00
|
|
|
; Scopes
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(source_file)
|
|
|
|
|
(circuit)
|
|
|
|
|
(module)
|
|
|
|
|
|
|
|
|
|
(else)
|
|
|
|
|
(when)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-03-26 18:37:15 -04:00
|
|
|
|
|
|
|
|
; References
|
|
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2023-03-26 18:37:15 -04:00
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(port (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(wire (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(cmem (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(smem (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(memory (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(register (identifier) @local.definition.field)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(circuit (identifier) @local.definition.namespace)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(module (identifier) @local.definition.namespace)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(parameter (identifier) @local.definition.parameter)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(rdwr (identifier) @local.definition.var)
|
2023-03-26 18:37:15 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(node (identifier) @local.definition.var)
|