mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
handle . in frame macro names
This commit is contained in:
parent
bff92d9d32
commit
eb9943973b
1 changed files with 3 additions and 2 deletions
|
@ -98,6 +98,7 @@ FLOAT {DIGIT}+"."{DIGIT}*
|
||||||
NUM ({DIGIT}+("."{DIGIT}*)?)
|
NUM ({DIGIT}+("."{DIGIT}*)?)
|
||||||
s [ \t]
|
s [ \t]
|
||||||
m ([\-+]?)
|
m ([\-+]?)
|
||||||
|
FRAMEID {ID}(\.{ID})*
|
||||||
|
|
||||||
%x grab_frame grab_other comment
|
%x grab_frame grab_other comment
|
||||||
|
|
||||||
|
@ -222,7 +223,7 @@ m ([\-+]?)
|
||||||
return INCOP;
|
return INCOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
"$"{s}*{ID} {
|
"$"{s}*{FRAMEID} {
|
||||||
int ret = do_grab (yytext);
|
int ret = do_grab (yytext);
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -230,7 +231,7 @@ m ([\-+]?)
|
||||||
BEGIN (-ret);
|
BEGIN (-ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
<grab_frame>{ID} add_frame_macro (yytext);
|
<grab_frame>{FRAMEID} add_frame_macro (yytext);
|
||||||
<grab_other>[^\r\n]* /* skip */
|
<grab_other>[^\r\n]* /* skip */
|
||||||
|
|
||||||
<*>\r*\n {
|
<*>\r*\n {
|
||||||
|
|
Loading…
Reference in a new issue