Menu

#487 Indent of forever body is incorrect

v1.0_(example)
closed-fixed
nobody
None
5
2017-04-19
2017-04-19
No

I use Ctrl + I to auto format SystemVerilog files by SVE 1.9.9.
I find the following code is incorrectly indented:

module a;
    initial begin
        forever@(posedge clk) begin
                if(b) begin
                end
            end
    end
endmodule

The "if" block is incorrectly indented by 16 whitespaces. The correct whitespaces count should be the count of "forever" block indent whitespaces (8) plus 4, i.e., 12. The attached file is the example file.

1 Attachments

Discussion

  • StevenAZ

    StevenAZ - 2017-04-19
    • status: open --> closed-fixed
     
  • StevenAZ

    StevenAZ - 2017-04-19

    Fixed in 2.0.0

     
  • Meng-Yuan Huang

    Meng-Yuan Huang - 2017-04-19

    Thanks.

     

Log in to post a comment.