Add the DragonFly Mail Agent dma(8) to the base.
[dragonfly/netmp.git] / libexec / dma / aliases_scan.l
blob7846b30d9e085f6e088591cf4e95f6ab2d1ff549
1 %{
2 /* $DragonFly: src/libexec/dma/aliases_scan.l,v 1.1 2008/02/02 18:20:51 matthias Exp $ */
4 #include <string.h>
5 #include "aliases_parse.h"
6 %}
8 %option yylineno
12 [^:,#[:space:][:cntrl:]]+       {yylval.ident = strdup(yytext); return T_IDENT;}
13 [:,\n]                          return yytext[0];
14 ^([[:blank:]]*(#.*)?\n)+        ;/* ignore empty lines */
15 (\n?[[:blank:]]+|#.*)+          ;/* ignore whitespace and continuation */
16 \\\n                            ;/* ignore continuation.  not allowed in comments */
17 .                               return T_ERROR;
18 <<EOF>>                         return T_EOF;