verilog-mode icon indicating copy to clipboard operation
verilog-mode copied to clipboard

Is it possible to make "begin" keyword align with case expression?

Open veripoolbot opened this issue 8 years ago • 1 comments


Author Name: Enzo Chi Original Redmine Issue: 1168 from https://www.veripool.org


We have coding style required the "begin" keyword has to align with the case expression:

Expected:

      case(sel)
          0:
          begin
              dout <= a;
          end

          ....
       endcase

But the verilog-mode always indent the "begin" as below:

      case(sel)
          0:
              begin
                  dout <= a;
              end

          ....
       endcase

veripoolbot avatar May 26 '17 03:05 veripoolbot


Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-11-19T13:44:35Z


I don't believe there is presently a setting for this.

Note the indentation code is mostly maintained/improved as patches are contributed. So, perhaps you would like to consider contributing a patch for this?

veripoolbot avatar Nov 19 '17 13:11 veripoolbot