Closed YikeZhou closed 1 year ago
I found a relevant comment here: https://github.com/tree-sitter/tree-sitter-verilog/issues/54#issuecomment-1625683001
In that case, b[0]
is considered to be bit_select
.
module mod ();
assign a = {b[0]};
endmodule
This does remind me that I'm working with a parser, who cannot tell the difference between bit selection and element selection. Therefore, this issue is just a duplicate of #54.
Given this:
Run tree-sitter like this:
Got this output: