]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Ignore any empty lines
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:10:15 +0000 (19:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:10:15 +0000 (19:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index c8cbd27ed8ae34388a883bfad0d4a0ac3a61db56..91f45a0de39b11092c03efaa7ec3df5ddbab1f37 100644 (file)
@@ -48,7 +48,13 @@ static void yyerror(const char* s);
 
 %%
 
-top: NEWLINE
+top                            : top empty
+                               | empty
+                               ;
+
+empty                  : WHITESPACE NEWLINE
+                               | NEWLINE
+                               ;
 
 %%