Need to isolate the start state of a scanner before setting the to-state and
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sun, 13 May 2007 00:21:33 +0000 (00:21 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sun, 13 May 2007 00:21:33 +0000 (00:21 +0000)
from-state actions which clear and set tokstart.

git-svn-id: http://svn.complang.org/ragel/trunk@230 052ea7fc-9027-0410-9066-f65837a77df0

ragel/parsetree.cpp

index d256ea8..089b834 100644 (file)
@@ -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 ) {