]> git.ipfire.org Git - pakfire.git/blobdiff - src/libpakfire/parser/scanner.l
libpakfire: parser: Move keywords before variable matches
[pakfire.git] / 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; }
-
 %%