aboutsummaryrefslogtreecommitdiff
path: root/properties.l
blob: 7728a91c9570e35974ba56e1c8e3bb1a78c04f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%{
#include "properties-parser.h"
%}

%%

=|:                    return DIV;
^[ \t]*[a-zA-Z0-9\.]*  yylval.value = strdup(yytext); return KEY;
.                      yylval.value = strdup(yytext); return VALUE;
\n*                    ;
^[ \t]*/\r?\n          ;

%%