Enforce newlines around body of loopBlock

- The start and end of the loopBlock should be on their own line
master
Raymon Zutekouw 4 years ago committed by Raymon Zutekouw
parent a967f0649f
commit bc366b7e1d
  1. 3
      src/grammars/mblf.pest

@ -3,10 +3,11 @@ operand = @{ "operand" } // TODO
instruction = { operator ~ (" "+ ~ operand)? }
loopBlockStart = { "[" }
loopBlockStart = { "[" ~ ("\n" | "\r\n") }
loopBlockEnd = { "]" }
loopBlock = { loopBlockStart
~ statements
~ ("\n" | "\r\n")
~ loopBlockEnd
}

Loading…
Cancel
Save