From: thurston Date: Sun, 13 May 2007 00:21:33 +0000 (+0000) Subject: Need to isolate the start state of a scanner before setting the to-state and X-Git-Tag: 2.0_alpha~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dcbfebf50c5e91caf1e01f07abd99761ed27e22;p=external%2Fragel.git Need to isolate the start state of a scanner before setting the to-state and from-state actions which clear and set tokstart. git-svn-id: http://svn.complang.org/ragel/trunk@230 052ea7fc-9027-0410-9066-f65837a77df0 --- diff --git a/ragel/parsetree.cpp b/ragel/parsetree.cpp index d256ea8..089b834 100644 --- a/ragel/parsetree.cpp +++ b/ragel/parsetree.cpp @@ -346,6 +346,7 @@ void LongestMatch::runLonestMatch( ParseData *pd, FsmAp *graph ) } /* The actions executed on starting to match a token. */ + graph->isolateStartState(); graph->startState->toStateActionTable.setAction( pd->initTokStartOrd, pd->initTokStart ); graph->startState->fromStateActionTable.setAction( pd->setTokStartOrd, pd->setTokStart ); if ( maxItemSetLength > 1 ) {