thomasrussellmurphy / istyle-verilog-formatter

Open source implementation of a Verilog formatter
GNU General Public License v2.0
173 stars 44 forks source link

`module` statement always indented with 8 spaces when `ifndef` compiler directive is used #4

Closed brlin-tw closed 4 years ago

brlin-tw commented 7 years ago

Reproduce source

`ifndef FOO
module demo();

endmodule
`endif

iStyle commandline

$ iStyle demo.v

Expected behavior

`ifndef FOO
module demo();

endmodule
`endif

Current behavior

`ifndef FOO
       module demo();

endmodule
`endif
thomasrussellmurphy commented 6 years ago

Bug acknowledged. I'll see when I have time to dig into the current declared tokens.