]> git.ipfire.org Git - pakfire.git/commitdiff
parser: Allow empty lines in READLINES
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Feb 2021 18:04:52 +0000 (18:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Feb 2021 18:04:52 +0000 (18:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index f4d3e61f973d51a9b9c6ca01e3e99fbb0cb8ed84..3bd604d4189b4efa1c7d7876653bdcb288809895 100644 (file)
@@ -156,6 +156,11 @@ line                                               : T_STRING T_EOL
                                                        {
                                                                $$ = $1;
                                                        }
+                                                       | T_EOL
+                                                       {
+                                                               // Empty line
+                                                               $$ = "";
+                                                       }
                                                        ;
 
 subparser                                      : subparser_open T_INDENT grammar T_OUTDENT subparser_close