]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Ignore all lines with comments
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:01:47 +0000 (19:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:01:47 +0000 (19:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/scanner.l

index f12cb23460b43e31b9bc266f9239621a85b6e91d..aa150b64c5f0542da97fec7c198c5f93c96ec448 100644 (file)
@@ -30,6 +30,7 @@ int num_lines;
 
 %%
 
+#.*$           { /* ignore comments */ }
 [ \t]          { return WHITESPACE; }
 \t                     { return TAB; }
 \n                     { num_lines++; return NEWLINE; }