<br>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. <br>Can you suggest a fix, or explain why a fix would be a bad thing?<br>
<br>thanks<br>-gedalia<br><div class="gmail_quote"><br><br>On Fri, Nov 21, 2008 at 11:40 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, 17 Nov 2008 14:47:55 -0500, "Gedalia Pasternak" <<a href="mailto:gedalia@gmail.com">gedalia@gmail.com</a>><br>
wrote:<br>
<div><div></div><div class="Wj3C7c">> Hi All,<br>
> I've been trying to improve the behavior of auto complete in lua, to<br>
> that<br>
> end I overloaded autoCompletionWordSeparators as follows:<br>
><br>
> QStringList<br>
> myLexerLua::autoCompletionWordSeparators() const<br>
> {<br>
> QStringList auto_complete_list;<br>
> auto_complete_list.append(" ");<br>
> auto_complete_list.append("(");<br>
> auto_complete_list.append(")");<br>
> auto_complete_list.append("\"");<br>
> auto_complete_list.append(":");<br>
> auto_complete_list.append(".");<br>
> auto_complete_list.append(",");<br>
> auto_complete_list.append(";");<br>
> return auto_complete_list;<br>
> }<br>
><br>
> What I've noticed is that if my script looks like:<br>
><br>
> message<br>
> print( mess<br>
><br>
> mess is never autocompleted, I think "print( messages" is being combined<br>
> when the code tries to get context. and instead of searching for mess it<br>
> searching for the "print( messages," Is anyone else seeing this or might<br>
> have a fix? I'm using 2.2<br>
<br>
</div></div>A valid sequence is a set of words separated by a separator, possibly with<br>
a trailing separator. You have word-separator-separator-word.<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------<br>cel: 917.776.8346 AIM: gedaliap<br><a href="http://www.gedalia.net">http://www.gedalia.net</a><br>
---------------------------------------------------------------<br>Fight Entropy!!! Fight Entropy!!! Figth Etnropy! !<br>iFgth Etnrop!y ! giFth tErno!py ! giFt htrEno!p y! --- Well maybe<br>not...<br>