Update of /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1992/src_completions/org/python/pydev/editor/codecompletion
Modified Files:
PyContextInformationValidator.java
Log Message:
Minors: ParsingUtils accepts null instead of buffer (so, objects that don't need the actual values can just use it to skip comments, parenthesis, etc).
Index: PyContextInformationValidator.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/PyContextInformationValidator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PyContextInformationValidator.java 12 Apr 2008 15:41:17 -0000 1.4
--- PyContextInformationValidator.java 15 Jun 2008 16:45:26 -0000 1.5
***************
*** 20,23 ****
--- 20,24 ----
import org.eclipse.swt.custom.StyleRange;
import org.python.pydev.core.docutils.ParsingUtils;
+ import org.python.pydev.core.structure.FastStringBuffer;
import org.python.pydev.plugin.PydevPlugin;
***************
*** 218,222 ****
case '"':
case '\'':
! int eaten = ParsingUtils.eatLiterals(document, new StringBuffer(), offset - 1) + 1;
if (eaten > offset) {
offset = eaten;
--- 219,223 ----
case '"':
case '\'':
! int eaten = ParsingUtils.eatLiterals(document, null, offset - 1) + 1;
if (eaten > offset) {
offset = eaten;
|