]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Move operators before the value matching rule
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:21:34 +0000 (19:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:21:34 +0000 (19:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/scanner.l

index 4b6398e857bb0e46bc0a3d7247a534e1598fa28c..21db9800d66f66d45210696cfda8e214d4fe902f 100644 (file)
@@ -39,9 +39,11 @@ string                       [a-zA-Z0-9`~!@#$%\^&*()_\-+=:\[\]<>,\.?\\]+
 
 #.*$                   { /* ignore comments */ }
 {whitespace}   { return WHITESPACE; }
-\t                             { return TAB; }
 \n                             { num_lines++; return NEWLINE; }
 
+"="                            { return ASSIGN; }
+"+="                   { return APPEND; }
+
 "define"               { return DEFINE; }
 "def"                  { return DEFINE; }
 "end"                  { return END; }
@@ -49,7 +51,4 @@ string                        [a-zA-Z0-9`~!@#$%\^&*()_\-+=:\[\]<>,\.?\\]+
 {variable}             { return VARIABLE; }
 {string}               { return VALUE; }
 
-"="                            { return ASSIGN; }
-"+="                   { return APPEND; }
-
 %%