]> granicus.if.org Git - flex/commitdiff
No YY_USER_ACTION if continued action
authorVern Paxson <vern@ee.lbl.gov>
Mon, 25 Jul 1994 20:49:44 +0000 (20:49 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Mon, 25 Jul 1994 20:49:44 +0000 (20:49 +0000)
nfa.c

diff --git a/nfa.c b/nfa.c
index 2f104f1171d6cd512d8d0bb6095bf07c0d429b65..d4a994d53f294cd3513dfc3a1fdef1d31b28518f 100644 (file)
--- 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 );
        }