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

index cc29076ae37300ecdbf8785b124337a85200e400..c2ff6f3e06af337600b968f03a2066b218fd27c8 100644 (file)
@@ -41,14 +41,14 @@ whitespace  ([ \t])+
 \t                     { return TAB; }
 \n                     { num_lines++; return NEWLINE; }
 
+"define"       { return DEFINE; }
+"def"          { return DEFINE; }
+"end"          { return END; }
+
 {variable}     { return VARIABLE; }
 [A-Za-z0-9]    { return VALUE; }
 
 "="                    { return ASSIGN; }
 "+="           { return APPEND; }
 
-"define"       { return DEFINE; }
-"def"          { return DEFINE; }
-"end"          { return END; }
-
 %%