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

Switch-Case Formatting Issue #4

Open
alhassanalbadri opened this issue Apr 10, 2024 · 0 comments
Open

Switch-Case Formatting Issue #4

alhassanalbadri opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alhassanalbadri
Copy link
Owner

alhassanalbadri commented Apr 10, 2024

Given such a multi-line case in a switch-case statement:

case(count[N-1:N-2])
2'b00:
begin
digit_val = {1'b0, in0};
digit_en = 4'b1110;
end
endcase

We expect the begin and end block to be indented since its a multi-line case definition.

Current Output:

case(count[N-1:N-2])
    2'b00:
    begin
        digit_val = {1'b0, in0};
        digit_en = 4'b1110;
    end
endcase

Expected Output:

case(count[N-1:N-2])
    2'b00:
        begin
            digit_val = {1'b0, in0};
            digit_en = 4'b1110;
        end
endcase
@alhassanalbadri alhassanalbadri added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant