mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
fix(verilog): update queries (#7400)
1. Add "string" as a keyword 2. Fix issue where non-type.builtin fields are captured when using (data_type) as type.builtin 3. Add generate label
This commit is contained in:
parent
b3752a311a
commit
7930b5f983
1 changed files with 9 additions and 1 deletions
|
|
@ -75,6 +75,7 @@
|
|||
"global"
|
||||
"ref"
|
||||
"initial"
|
||||
"string"
|
||||
(unique_priority)
|
||||
(bins_keyword)
|
||||
(always_keyword)
|
||||
|
|
@ -259,10 +260,14 @@
|
|||
|
||||
[
|
||||
(net_type)
|
||||
(data_type)
|
||||
(integer_vector_type)
|
||||
(time_unit)
|
||||
(integer_atom_type)
|
||||
] @type.builtin
|
||||
|
||||
(data_type
|
||||
(simple_identifier) @type.builtin)
|
||||
|
||||
; variable
|
||||
(list_of_variable_decl_assignments
|
||||
(variable_decl_assignment
|
||||
|
|
@ -439,6 +444,9 @@ port_name: (simple_identifier) @variable
|
|||
]
|
||||
(simple_identifier)? @label)
|
||||
|
||||
(generate_block
|
||||
name: (simple_identifier) @label)
|
||||
|
||||
; function.call
|
||||
(method_call_body
|
||||
name: (simple_identifier) @function.call)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue