From: Vern Paxson Date: Mon, 25 Jul 1994 20:49:44 +0000 (+0000) Subject: No YY_USER_ACTION if continued action X-Git-Tag: flex-2-5-5b~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2938d67431dd108852261fe224541929d790b1b;p=flex No YY_USER_ACTION if continued action --- diff --git a/nfa.c b/nfa.c index 2f104f1..d4a994d 100644 --- a/nfa.c +++ b/nfa.c @@ -264,9 +264,11 @@ int mach, variable_trail_rule, headcnt, trailcnt; /* Okay, in the action code at this point yytext and yyleng have * their proper final values for this rule, so here's the point - * to do any user action. + * to do any user action. But don't do it for continued actions, + * as that'll result in multiple YY_USER_ACTION's. */ - add_action( "YY_USER_ACTION\n" ); + if ( ! continued_action ) + add_action( "YY_USER_ACTION\n" ); line_directive_out( (FILE *) 0, 1 ); }