mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
45
runtime/queries/firrtl/locals.scm
Normal file
45
runtime/queries/firrtl/locals.scm
Normal file
|
|
@ -0,0 +1,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue