From: Michael Tremer Date: Sat, 9 Mar 2019 19:01:47 +0000 (+0000) Subject: libpakfire: parser: Ignore all lines with comments X-Git-Tag: 0.9.28~1285^2~1100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a5b37fa0405e8ce1bb39598bb793e7bd64e46c5;p=pakfire.git libpakfire: parser: Ignore all lines with comments Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/parser/scanner.l b/src/libpakfire/parser/scanner.l index f12cb2346..aa150b64c 100644 --- a/src/libpakfire/parser/scanner.l +++ b/src/libpakfire/parser/scanner.l @@ -30,6 +30,7 @@ int num_lines; %% +#.*$ { /* ignore comments */ } [ \t] { return WHITESPACE; } \t { return TAB; } \n { num_lines++; return NEWLINE; }