From: <fwi...@us...> - 2008-09-26 17:02:02
|
Revision: 5352 http://jython.svn.sourceforge.net/jython/?rev=5352&view=rev Author: fwierzbicki Date: 2008-09-26 17:01:58 +0000 (Fri, 26 Sep 2008) Log Message: ----------- Fixes an infinite loop that occurs when there is an unterminated triple string and ListErrorHandler is being used. Modified Paths: -------------- trunk/jython/grammar/Python.g Modified: trunk/jython/grammar/Python.g =================================================================== --- trunk/jython/grammar/Python.g 2008-09-26 15:37:19 UTC (rev 5351) +++ trunk/jython/grammar/Python.g 2008-09-26 17:01:58 UTC (rev 5352) @@ -250,6 +250,10 @@ } catch (NoViableAltException nva) { errorHandler.reportError(this, nva); errorHandler.recover(this, nva); // throw out current char and try again + } catch (FailedPredicateException fp) { + //XXX: added this for failed STRINGPART + errorHandler.reportError(this, fp); + errorHandler.recover(this, fp); // throw out current char and try again } catch (RecognitionException re) { errorHandler.reportError(this, re); // match() routine has already called recover() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |