handle . in frame macro names

This commit is contained in:
Bill Currie 2007-04-06 08:19:58 +00:00 committed by Jeff Teunissen
parent bff92d9d32
commit eb9943973b

View file

@ -98,6 +98,7 @@ FLOAT {DIGIT}+"."{DIGIT}*
NUM ({DIGIT}+("."{DIGIT}*)?)
s [ \t]
m ([\-+]?)
FRAMEID {ID}(\.{ID})*
%x grab_frame grab_other comment
@ -222,7 +223,7 @@ m ([\-+]?)
return INCOP;
}
"$"{s}*{ID} {
"$"{s}*{FRAMEID} {
int ret = do_grab (yytext);
if (ret > 0)
return ret;
@ -230,7 +231,7 @@ m ([\-+]?)
BEGIN (-ret);
}
<grab_frame>{ID} add_frame_macro (yytext);
<grab_frame>{FRAMEID} add_frame_macro (yytext);
<grab_other>[^\r\n]* /* skip */
<*>\r*\n {