vorotynsky/Kroha

Redundant indent for instructions with body

vorotynsky opened this issue · 0 comments

Statements with block body, such as if or loop, compiles with redundant intent.

For example

loop WithBlock {
  !; 2 indents
}

loop WithoutBlock
  !; 1 indent

compiles to

WithBlock_begin:
    ; 2 indents
jmp WithBlock_begin
WithBlock_end:

WithoutBlock_begin:
  ; 1 indent
jmp WithoutBlock_begin
WithoutBlock_end:

Expected: 1 indent for WithBlock.
Actual: 2 indents.