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)? }
|
||||
|
||||
loopBlockStart = { "[" }
|
||||
loopBlockStart = { "[" ~ ("\n" | "\r\n") }
|
||||
loopBlockEnd = { "]" }
|
||||
loopBlock = { loopBlockStart
|
||||
~ statements
|
||||
~ ("\n" | "\r\n")
|
||||
~ loopBlockEnd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user