From d02bb531313d699885e0e935b6459cdf91fe969f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Feb 2025 19:26:31 +0000 Subject: [PATCH] parser: Ignore comments regardless what state the scanner is in Fixes: #13363 - A comment character anywhere in the build or packages section causes the build to fail Signed-off-by: Michael Tremer --- src/pakfire/parser/scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pakfire/parser/scanner.l b/src/pakfire/parser/scanner.l index e9473beb8..9510b9c14 100644 --- a/src/pakfire/parser/scanner.l +++ b/src/pakfire/parser/scanner.l @@ -120,7 +120,7 @@ scriptlet script(let)? yyextra->lineno++; REJECT; } -#.*$ { +<*>#.*$ { /* ignore comments */ } -- 2.39.5