[QScintilla] auto complete bug

Gedalia Pasternak gedalia at gmail.com
Mon Nov 17 19:47:55 GMT 2008


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

thanks
-gedalia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20081117/dbfdbf89/attachment.html


More information about the QScintilla mailing list