]> git.ipfire.org Git - people/ms/dma.git/commitdiff
aliases: skip empty lines
authorSimon Schubert <2@0x2c.org>
Thu, 28 Oct 2010 23:50:39 +0000 (01:50 +0200)
committerSimon Schubert <2@0x2c.org>
Thu, 28 Oct 2010 23:50:39 +0000 (01:50 +0200)
aliases_scan.l

index 5e6bdd5d9eeddc7b26b9eb5ace1530796981462a..809d1e1687310515b4f91cbb06b8a2dbe9017eb7 100644 (file)
@@ -14,8 +14,8 @@ int yylex(void);
 %%
 
 [^:,#[:space:][:cntrl:]]+      {yylval.ident = strdup(yytext); return T_IDENT;}
-[:,\n]                         return yytext[0];
 ^([[:blank:]]*(#.*)?\n)+       ;/* ignore empty lines */
+[:,\n]                         return yytext[0];
 (\n?[[:blank:]]+|#.*)+         ;/* ignore whitespace and continuation */
 \\\n                           ;/* ignore continuation.  not allowed in comments */
 .                              return T_ERROR;