Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
veripoolbot opened this issue May 26, 2017 · 1 comment
Open

Comments

@veripoolbot
Copy link
Collaborator


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
Copy link
Collaborator Author


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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant