From: <fwi...@us...> - 2008-07-24 13:51:50
|
Revision: 4995 http://jython.svn.sourceforge.net/jython/?rev=4995&view=rev Author: fwierzbicki Date: 2008-07-24 13:51:47 +0000 (Thu, 24 Jul 2008) Log Message: ----------- Make stopCharIndex consistent. Modified Paths: -------------- branches/asm/src/org/python/antlr/PythonTreeAdaptor.java Modified: branches/asm/src/org/python/antlr/PythonTreeAdaptor.java =================================================================== --- branches/asm/src/org/python/antlr/PythonTreeAdaptor.java 2008-07-24 07:29:54 UTC (rev 4994) +++ branches/asm/src/org/python/antlr/PythonTreeAdaptor.java 2008-07-24 13:51:47 UTC (rev 4995) @@ -29,9 +29,9 @@ //XXX: instanceof is necessary because of the use of ClassicToken // for leading whitespace lexing. if (stopToken instanceof CommonToken) { - stopChar = ((CommonToken)stopToken).getStopIndex(); + stopChar = ((CommonToken)stopToken).getStopIndex() + 1; } else if (stopToken instanceof ImaginaryToken) { - stopChar = ((ImaginaryToken)stopToken).getStopIndex(); + stopChar = ((ImaginaryToken)stopToken).getStopIndex() + 1; } } PythonTree pt = (PythonTree)t; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |