mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30: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"
|
"global"
|
||||||
"ref"
|
"ref"
|
||||||
"initial"
|
"initial"
|
||||||
|
"string"
|
||||||
(unique_priority)
|
(unique_priority)
|
||||||
(bins_keyword)
|
(bins_keyword)
|
||||||
(always_keyword)
|
(always_keyword)
|
||||||
|
|
@ -259,10 +260,14 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
(net_type)
|
(net_type)
|
||||||
(data_type)
|
(integer_vector_type)
|
||||||
(time_unit)
|
(time_unit)
|
||||||
|
(integer_atom_type)
|
||||||
] @type.builtin
|
] @type.builtin
|
||||||
|
|
||||||
|
(data_type
|
||||||
|
(simple_identifier) @type.builtin)
|
||||||
|
|
||||||
; variable
|
; variable
|
||||||
(list_of_variable_decl_assignments
|
(list_of_variable_decl_assignments
|
||||||
(variable_decl_assignment
|
(variable_decl_assignment
|
||||||
|
|
@ -439,6 +444,9 @@ port_name: (simple_identifier) @variable
|
||||||
]
|
]
|
||||||
(simple_identifier)? @label)
|
(simple_identifier)? @label)
|
||||||
|
|
||||||
|
(generate_block
|
||||||
|
name: (simple_identifier) @label)
|
||||||
|
|
||||||
; function.call
|
; function.call
|
||||||
(method_call_body
|
(method_call_body
|
||||||
name: (simple_identifier) @function.call)
|
name: (simple_identifier) @function.call)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue