Skip to content

Propose: improving if statement with multiline conditions #70

Description

@Nabav

Report a bug

Input and also Expected Behavior

The end of multi-line conditions ) then should be outdented in the next line to be at the same indentation level as if (.

if (
    long_condition_1
    or long_condition_2
) then
    x <= '1';
else
    x <= '0';
end if;

Actual Behavior

The end of multi-line conditions ) then is indented at the same level of conditions and also statements in the if body.

if (
    long_condition_1
    or long_condition_2
    ) then  -- should not be indented
    x <= '1';
else
    x <= '0';
end if;

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions