Allow newlines between comments and statements

This commit is contained in:
2022-01-01 18:40:15 +01:00
committed by Raymon Zutekouw
parent 9cad628caf
commit 2ac2306b95
+1 -1
View File
@@ -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 }