]>
Commit | Line | Data |
---|---|---|
86e4d161 MS |
1 | %{ |
2 | /* $DragonFly: src/libexec/dma/aliases_scan.l,v 1.1 2008/02/02 18:20:51 matthias Exp $ */ | |
3 | ||
4 | #include <string.h> | |
5 | #include "aliases_parse.h" | |
6 | %} | |
7 | ||
8 | %option yylineno | |
9 | ||
10 | %% | |
11 | ||
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; | |
19 | ||
20 | %% |