diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index 1f4209c7c..453d6a023 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -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); } -{ID} add_frame_macro (yytext); +{FRAMEID} add_frame_macro (yytext); [^\r\n]* /* skip */ <*>\r*\n {