g2384 / VHDLFormatter

VHDL formatter web online written in typescript
https://g2384.github.io/VHDLFormatter/
MIT License
51 stars 20 forks source link

un-necessary padspaces added to case statement #20

Open ryoi6 opened 5 years ago

ryoi6 commented 5 years ago

Report a bug

When case statement is having its assignment aligned, the numbers of spaces is also copied between the signal and "<=".

Selected options,

Input

case state is
    when idle => state <= idle;
    when run => state <= run;
    when others => state <= idle;
end case;

Expected Behavior

case state is
    when idle   => state <= idle;
    when run    => state <= run;
    when others => state <= idle;
end case;

Actual Behavior

case state is
    when idle   => state   <= idle;
    when run    => state    <= run;
    when others => state <= idle;
end case;
g2384 commented 4 years ago

Thanks, 👍 Good spot, not easy to fix