Package import is removed after verilog_align command

Issue #136 resolved
Shuo Li
created an issue

Before verilog_align command

module bug_reproduce
  import foo_pk::*;
  ();
endmodule : bug_reproduce

After verilog_align command

module bug_reproduce

  ();
endmodule : bug_reproduce

Comments (5)

  1. Shuo Li reporter
    • edited description
    • marked as major

    This problem caused by the ';' is used to address 'module' block with import, parameter and ports definitions. However, when ';' is detected in line import foo_pk::*;, the txt argument passed to alignModulePort will be the following text:

    module bug_reproduce
      import foo_pk::*;
    

    And the regex match in alignModulePort will fail.

  2. Log in to comment