[QScintilla] auto complete bug

Phil Thompson phil at riverbankcomputing.com
Fri Nov 21 16:40:33 GMT 2008


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


More information about the QScintilla mailing list