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:
zhangwwpeng 2024-11-24 17:44:23 +08:00 committed by GitHub
parent b3752a311a
commit 7930b5f983
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)