Allow either spaces or tabs as spacing

Raymon Zutekouw 4 years ago committed by Raymon Zutekouw
parent 6eb61ad83d
commit 298513eb7f
No known key found for this signature in database
GPG Key ID: E62222846283925
  1. 3
      src/grammars/mblf.pest

@ -1,7 +1,7 @@
operator = @{ "operator" } // TODO
operand = @{ "operand" } // TODO
instruction = { operator ~ (" "+ ~ operand)? }
instruction = { operator ~ (spacing+ ~ operand)? }
loopBlockStart = { "[" ~ newline }
loopBlockEnd = { "]" }
@ -15,5 +15,6 @@ statement = _{ instruction | loopBlock }
statements = _{ statement* }
newline = _{ "\n" | "\r\n" }
spacing = _{ " " | "\t" }
file = {SOI ~ (statement ~ newline+)* ~ EOI}

Loading…
Cancel
Save