]> git.ipfire.org Git - people/ms/dma.git/blame - aliases_scan.l
Fix typo: aquire -> acquire.
[people/ms/dma.git] / aliases_scan.l
CommitLineData
86e4d161 1%{
86e4d161
MS
2
3#include <string.h>
4#include "aliases_parse.h"
65bec70e
MS
5
6int yylex(void);
86e4d161
MS
7%}
8
9%option yylineno
65bec70e 10%option nounput
86e4d161
MS
11
12%%
13
14[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;}
15[:,\n] return yytext[0];
16^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */
17(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */
18\\\n ;/* ignore continuation. not allowed in comments */
19. return T_ERROR;
20<<EOF>> return T_EOF;
21
22%%