]> git.ipfire.org Git - people/ms/dma.git/blobdiff - aliases_scan.l
Merge pull request #12 from emaste/master
[people/ms/dma.git] / aliases_scan.l
index ac029a50324cbc8d0e00b2d523d73a89847f5436..809d1e1687310515b4f91cbb06b8a2dbe9017eb7 100644 (file)
@@ -1,9 +1,10 @@
 %{
-/* $DragonFly: src/libexec/dma/aliases_scan.l,v 1.2 2008/02/03 11:06:17 matthias Exp $ */
 
 #include <string.h>
 #include "aliases_parse.h"
 
+#define YY_NO_INPUT
+
 int yylex(void);
 %}
 
@@ -13,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;