5 #define debug(arg) // g_message("scan: " arg, yytext);
13 DATA ([^<\n]|<[^%])*\n*
14 CODE [ \t\n]([^%\n]|%[^>])*\n*
17 [[:space:]]*\n { debug("NL [%s]"); }
18 <INITIAL>{START} { debug("START [%s]"); yylval = g_strdup(yytext); BEGIN(IN); return START; }
19 <INITIAL>{DATA} { debug("DATA [%s]"); yylval = g_strdup(yytext); return DATA; }
20 <IN>{END} { debug("END [%s]"); yylval = g_strdup(yytext); BEGIN(INITIAL); return END; }
21 <IN>= { debug("OUT [%s]"); yylval = g_strdup(yytext); return OUT; }
22 <IN>{CODE} { debug("CODE [%s]"); yylval = g_strdup(yytext); return DATA; }