Enforce newlines around body of loopBlock

- The start and end of the loopBlock should be on their own line
This commit is contained in:
2021-12-26 19:42:53 +01:00
committed by Raymon Zutekouw
parent bc99a9d96b
commit 91a4c8c0b8
+2 -1
View File
@@ -3,10 +3,11 @@ operand = @{ "operand" } // TODO
instruction = { operator ~ (" "+ ~ operand)? }
loopBlockStart = { "[" }
loopBlockStart = { "[" ~ ("\n" | "\r\n") }
loopBlockEnd = { "]" }
loopBlock = { loopBlockStart
~ statements
~ ("\n" | "\r\n")
~ loopBlockEnd
}