Update of /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser/fastparser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7754/src/org/python/pydev/parser/fastparser
Modified Files:
FastDefinitionsParser.java
Log Message:
Changes in the ParsingUtils interface (creating correct version with factory to properly adapt to the object being read).
Index: FastDefinitionsParser.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser/fastparser/FastDefinitionsParser.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** FastDefinitionsParser.java 6 Jul 2008 13:10:42 -0000 1.5
--- FastDefinitionsParser.java 6 Jul 2008 21:58:08 -0000 1.6
***************
*** 117,120 ****
--- 117,121 ----
currIndex=0;
}
+ ParsingUtils parsingUtils = ParsingUtils.create(cs);
for (;currIndex < length; currIndex++, col++) {
***************
*** 129,133 ****
}
//go to the end of the literal
! currIndex = ParsingUtils.getLiteralEnd(cs, currIndex, c);
break;
--- 130,134 ----
}
//go to the end of the literal
! currIndex = parsingUtils.getLiteralEnd(currIndex, c);
break;
***************
*** 165,169 ****
case '(':
//starting some call, dict, list, tuple... those don't count on getting some actual definition
! currIndex = ParsingUtils.eatPar(cs, currIndex, null, c);
break;
--- 166,170 ----
case '(':
//starting some call, dict, list, tuple... those don't count on getting some actual definition
! currIndex = parsingUtils.eatPar(currIndex, null, c);
break;
|