[Pydev-cvs] org.python.pydev.parser/src/org/python/pydev/parser PyParser.java, 1.48, 1.49
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2007-07-18 00:55:11
|
Update of /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9486/src/org/python/pydev/parser Modified Files: PyParser.java Log Message: Making compatible with python 1.5 (unfinished). Index: PyParser.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser/PyParser.java,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** PyParser.java 17 Jul 2007 23:44:59 -0000 1.48 --- PyParser.java 18 Jul 2007 00:55:12 -0000 1.49 *************** *** 710,732 **** while(! okToGo){ ! if(! lineIn(info.linesChanged, line)){ info.linesChanged.add(new Integer(line)); okToGo = true; ! ! } else if(info.linesChanged.size() == 1){ ! line += 1; ! ! } else if(info.linesChanged.size() == 2 && line > 1){ ! line -= 1; ! ! } else if(info.linesChanged.size() == 3 && line > 2){ ! line -= 2; ! ! } else if(info.linesChanged.size() < 5){ ! line += 1; ! ! } else{ ! //it can go up to 5 reparses before bailing out and returning null. ! return null; } } --- 710,727 ---- while(! okToGo){ ! ! if(!lineIn(info.linesChanged, line)){ info.linesChanged.add(new Integer(line)); okToGo = true; ! } ! ! if(!okToGo){ ! if(info.linesChanged.size() < 5){ ! line += 1; ! ! } else{ ! //it can go up to 5 reparses before bailing out and returning null. ! return null; ! } } } |