[Pydev-cvs] org.python.pydev/src_completions/org/python/pydev/editor/codecompletion PyContextInfor
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-07-06 21:58:05
|
Update of /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7764/src_completions/org/python/pydev/editor/codecompletion Modified Files: PyContextInformationValidator.java Log Message: Changes in the ParsingUtils interface (creating correct version with factory to properly adapt to the object being read). Index: PyContextInformationValidator.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/PyContextInformationValidator.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PyContextInformationValidator.java 15 Jun 2008 16:45:26 -0000 1.5 --- PyContextInformationValidator.java 6 Jul 2008 21:58:12 -0000 1.6 *************** *** 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; --- 20,23 ---- *************** *** 208,211 **** --- 207,211 ---- int charCount = 0; int offset = start; + ParsingUtils parsingUtils = ParsingUtils.create(document); while (offset < end) { char curr = document.getChar(offset++); *************** *** 219,223 **** case '"': case '\'': ! int eaten = ParsingUtils.eatLiterals(document, null, offset - 1) + 1; if (eaten > offset) { offset = eaten; --- 219,223 ---- case '"': case '\'': ! int eaten = parsingUtils.eatLiterals(null, offset - 1) + 1; if (eaten > offset) { offset = eaten; |