Closed rayqqqm closed 5 months ago
Fixed in 3.3.4
Find a new err, think maybe similar problem. comment writing in the following 2 styles will lead to err.
module test #(
parameter PARA1 = 1,
parameter PARA2 = 2
) //this comment will lead to err
(
input clk ,
input rst ,
input din ,
input dout
);
endmodule
module test #(
parameter PARA1 = 1,
parameter PARA2 = 2 ) //this comment will lead to err
(
input clk ,
input rst ,
input din ,
input dout
);
endmodule
the err results are like
module test #(
parameter PARA1 = 1,
parameter PARA2 = 2
) //this comment will lead to err
(
input clk ,
input rst ,
input din ,
input dout
) (); //extra()here
endmodule
When align module instantiations, comments don't seem to be handled correctly and will lead to code breaks. for example:
before alignment
after alignment
you can see the 1st instantiation miss ')' and ';' and an extra comma is created on the last line of the 2nd instantiation.