If a neighbor solictation or neighbor advertisement isn't from the
[dragonfly.git] / libexec / dma / aliases_scan.l
CommitLineData
f67beddd 1%{
dba19026 2/* $DragonFly: src/libexec/dma/aliases_scan.l,v 1.2 2008/02/03 11:06:17 matthias Exp $ */
f67beddd
MS
3
4#include <string.h>
5#include "aliases_parse.h"
dba19026
MS
6
7int yylex(void);
f67beddd
MS
8%}
9
10%option yylineno
dba19026 11%option nounput
f67beddd
MS
12
13%%
14
15[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;}
16[:,\n] return yytext[0];
17^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */
18(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */
19\\\n ;/* ignore continuation. not allowed in comments */
20. return T_ERROR;
21<<EOF>> return T_EOF;
22
23%%