Allow newlines between comments and statements

rewrite/grammar-implicit-whitespace
Raymon Zutekouw 3 years ago
parent 877bb44c3e
commit c8583af668
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 2
      src/grammars/mblf.pest

@ -71,6 +71,6 @@ statement =_{ spacing*
statements =_{ (statement | NEWLINE)* } statements =_{ (statement | NEWLINE)* }
spacing =_{ " " | "\t" } spacing =_{ " " | "\t" }
COMMENT =_{ ";;" ~ (!NEWLINE ~ ANY)* ~ NEWLINE } COMMENT =_{ ";;" ~ (!NEWLINE ~ ANY)* ~ NEWLINE+ }
file = { SOI ~ (statement ~ NEWLINE+)* ~ EOI } file = { SOI ~ (statement ~ NEWLINE+)* ~ EOI }

Loading…
Cancel
Save