]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Use handle for whitespace
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:04:25 +0000 (19:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:04:25 +0000 (19:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/scanner.l

index aa150b64c5f0542da97fec7c198c5f93c96ec448..367cff01ed24db78643c52b1031693ba3d993083 100644 (file)
@@ -28,10 +28,12 @@ int num_lines;
 #include "grammar.h"
 %}
 
+whitespace     ([ \t])+
+
 %%
 
 #.*$           { /* ignore comments */ }
-[ \t]          { return WHITESPACE; }
+whitespace     { return WHITESPACE; }
 \t                     { return TAB; }
 \n                     { num_lines++; return NEWLINE; }