[QScintilla] auto complete bug
Gedalia Pasternak
gedalia at gmail.com
Fri Nov 21 16:54:23 GMT 2008
It doesn't seem like having 2 separators in a row should break autocomplete.
I'd think that at least it would pick up mess as something that could
potentially be auto completed.
Can you suggest a fix, or explain why a fix would be a bad thing?
thanks
-gedalia
On Fri, Nov 21, 2008 at 11:40 AM, Phil Thompson <phil at riverbankcomputing.com
> wrote:
> On Mon, 17 Nov 2008 14:47:55 -0500, "Gedalia Pasternak" <gedalia at gmail.com
> >
> wrote:
> > Hi All,
> > I've been trying to improve the behavior of auto complete in lua, to
> > that
> > end I overloaded autoCompletionWordSeparators as follows:
> >
> > QStringList
> > myLexerLua::autoCompletionWordSeparators() const
> > {
> > QStringList auto_complete_list;
> > auto_complete_list.append(" ");
> > auto_complete_list.append("(");
> > auto_complete_list.append(")");
> > auto_complete_list.append("\"");
> > auto_complete_list.append(":");
> > auto_complete_list.append(".");
> > auto_complete_list.append(",");
> > auto_complete_list.append(";");
> > return auto_complete_list;
> > }
> >
> > What I've noticed is that if my script looks like:
> >
> > message
> > print( mess
> >
> > mess is never autocompleted, I think "print( messages" is being combined
> > when the code tries to get context. and instead of searching for mess it
> > searching for the "print( messages," Is anyone else seeing this or might
> > have a fix? I'm using 2.2
>
> A valid sequence is a set of words separated by a separator, possibly with
> a trailing separator. You have word-separator-separator-word.
>
> Phil
>
--
---------------------------------------------------------------
cel: 917.776.8346 AIM: gedaliap
http://www.gedalia.net
---------------------------------------------------------------
Fight Entropy!!! Fight Entropy!!! Figth Etnropy! !
iFgth Etnrop!y ! giFth tErno!py ! giFt htrEno!p y! --- Well maybe
not...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20081121/b4340f96/attachment.html
More information about the QScintilla
mailing list