2020-11-18 21:38:58 +01:00
|
|
|
[
|
|
|
|
|
(loop_generate_construct)
|
|
|
|
|
(loop_statement)
|
|
|
|
|
(conditional_statement)
|
|
|
|
|
(case_item)
|
|
|
|
|
(function_declaration)
|
|
|
|
|
(always_construct)
|
|
|
|
|
(module_declaration)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(data_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(list_of_variable_decl_assignments
|
|
|
|
|
(variable_decl_assignment
|
|
|
|
|
(simple_identifier) @local.definition.var)))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(genvar_initialization
|
2024-01-06 15:05:50 +09:00
|
|
|
(genvar_identifier
|
|
|
|
|
(simple_identifier) @local.definition.var))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(for_initialization
|
2024-01-06 15:05:50 +09:00
|
|
|
(for_variable_declaration
|
|
|
|
|
(simple_identifier) @local.definition.var))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(net_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(list_of_net_decl_assignments
|
|
|
|
|
(net_decl_assignment
|
|
|
|
|
(simple_identifier) @local.definition.var)))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(ansi_port_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(port_identifier
|
|
|
|
|
(simple_identifier) @local.definition.var))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(parameter_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(list_of_param_assignments
|
|
|
|
|
(param_assignment
|
|
|
|
|
(parameter_identifier
|
|
|
|
|
(simple_identifier) @local.definition.parameter))))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(local_parameter_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(list_of_param_assignments
|
|
|
|
|
(param_assignment
|
|
|
|
|
(parameter_identifier
|
|
|
|
|
(simple_identifier) @local.definition.parameter))))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; TODO: fixme
|
2021-03-10 12:00:02 +01:00
|
|
|
;(function_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
;(function_identifier
|
|
|
|
|
;(simple_identifier) @local.definition.function))
|
2020-11-18 21:38:58 +01:00
|
|
|
(function_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
(function_body_declaration
|
|
|
|
|
(function_identifier
|
|
|
|
|
(function_identifier
|
|
|
|
|
(simple_identifier) @local.definition.function))))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
(tf_port_item1
|
2024-01-06 15:05:50 +09:00
|
|
|
(port_identifier
|
|
|
|
|
(simple_identifier) @local.definition.parameter))
|
2020-11-18 21:38:58 +01:00
|
|
|
|
|
|
|
|
; too broad, now includes types etc
|
2023-07-22 15:29:32 +02:00
|
|
|
(simple_identifier) @local.reference
|