Revert "Fix memory leak"
[platform/upstream/nbd.git] / nbdtab_lexer.l
1 %{
2 #include "nbdtab_parser.tab.h"
3 %}
4
5 %option noyywrap
6
7 %%
8
9 #[^\n]*\n       { /* ignoring comments */ }
10 [ \t]+          { yylval = strdup(yytext); return SPACE; }
11 [^ \t\n,=]+     { yylval = strdup(yytext); return STRING; }
12 .               { yylval = strdup(yytext); return *yytext; }
13 \n              { yylval = strdup(yytext); return *yytext; }