Enforce newlines around body of loopBlock

- The start and end of the loopBlock should be on their own line
rewrite/grammar-implicit-whitespace
Raymon Zutekouw 3 years ago
parent ef96dbf0ec
commit e767322bf4
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  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