nvim-treesitter/queries/firrtl/locals.scm

46 lines
682 B
Scheme
Raw Normal View History

2023-03-26 18:37:15 -04:00
; Scopes
[
(source_file)
(circuit)
(module)
(else)
(when)
] @local.scope
2023-03-26 18:37:15 -04:00
; References
(identifier) @local.reference
2023-03-26 18:37:15 -04:00
; Definitions
2024-01-06 15:05:50 +09:00
(port
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(wire
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(cmem
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(smem
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(memory
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(register
(identifier) @local.definition.field)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(circuit
(identifier) @local.definition.namespace)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(module
(identifier) @local.definition.namespace)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(parameter
(identifier) @local.definition.parameter)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(rdwr
(identifier) @local.definition.var)
2023-03-26 18:37:15 -04:00
2024-01-06 15:05:50 +09:00
(node
(identifier) @local.definition.var)