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

Indentation issue when using function within replication #1129

Closed
veripoolbot opened this issue Feb 9, 2017 · 2 comments
Closed

Indentation issue when using function within replication #1129

veripoolbot opened this issue Feb 9, 2017 · 2 comments

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Daniel Efinger
Original Redmine Issue: 1129 from https://www.veripool.org


The following code snippet gets indented like this:

if (rst)
begin
   a                       <= {fct(CONST_VALUE)){1'b0}};
b                       <= 1'b0;
c                       <= 1'b0;
d ...
...

end

The first line within the if-clause is correctly indented while there is a mismatch starting at the second and being effective until the final 'end'-keyword. If I replace the function call 'fct(CONST_VALUE)' within the replication operator {...{...}}, the subsequent lines are correctly indented. I guess some regexps of the parsing engine exclude those function calls within the replication operator. I do not know, if this phenomenon exist for other operator calls.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-03-14T13:38:19Z


Note the indentation code is fairly slow in being maintained, if you'd like to look at the code and offer a patch it would be appreciated.

@veripoolbot
Copy link
Collaborator Author


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


I believe this was fixed recently with #�.

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