]> git.ipfire.org Git - people/ms/dma.git/blame - aliases_scan.l
Merge pull request #34 from mtremer/better-authentication
[people/ms/dma.git] / aliases_scan.l
CommitLineData
86e4d161 1%{
86e4d161
MS
2
3#include <string.h>
5ef80d81 4#include "dma.h"
86e4d161 5#include "aliases_parse.h"
65bec70e 6
f4242841
SW
7#define YY_NO_INPUT
8
86e4d161
MS
9%}
10
11%option yylineno
65bec70e 12%option nounput
86e4d161
MS
13
14%%
15
16[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;}
86e4d161 17^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */
62361f41 18[:,\n] return yytext[0];
86e4d161
MS
19(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */
20\\\n ;/* ignore continuation. not allowed in comments */
21. return T_ERROR;
22<<EOF>> return T_EOF;
23
24%%