Enforce newlines around body of loopBlock
- The start and end of the loopBlock should be on their own line
This commit is contained in:
@@ -3,10 +3,11 @@ operand = @{ "operand" } // TODO
|
|||||||
|
|
||||||
instruction = { operator ~ (" "+ ~ operand)? }
|
instruction = { operator ~ (" "+ ~ operand)? }
|
||||||
|
|
||||||
loopBlockStart = { "[" }
|
loopBlockStart = { "[" ~ ("\n" | "\r\n") }
|
||||||
loopBlockEnd = { "]" }
|
loopBlockEnd = { "]" }
|
||||||
loopBlock = { loopBlockStart
|
loopBlock = { loopBlockStart
|
||||||
~ statements
|
~ statements
|
||||||
|
~ ("\n" | "\r\n")
|
||||||
~ loopBlockEnd
|
~ loopBlockEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user