summaryrefslogtreecommitdiff
path: root/nfa.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1994-07-25 20:49:44 +0000
committerVern Paxson <vern@ee.lbl.gov>1994-07-25 20:49:44 +0000
commitf2938d67431dd108852261fe224541929d790b1b (patch)
tree4cac7e8c6ec6b34163161a2f4dc4cb3c712afb0a /nfa.c
parentb4f8bff20410ede032016e615d7be92fd28f5aed (diff)
No YY_USER_ACTION if continued action
Diffstat (limited to 'nfa.c')
-rw-r--r--nfa.c6
1 files changed, 4 insertions, 2 deletions
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 );
}