aboutsummaryrefslogtreecommitdiff
path: root/properties.l
blob: a5102d0d1bb1349ef425aa91e3559a9f6880e985 (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;
\n                     ;
.                      yylval.value = strdup(yytext); return VALUE;
^[ \t]*/\r?\n          ;	/* /\r?\n get the end of line, ref: https://stackoverflow.com/a/56104754 */

%%