[svn] r7285: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine.Completion.n

VladD2 svnadmin at nemerle.org
Wed Jan 17 07:13:53 CET 2007


Log:
Fix a bug.

Author: VladD2
Date: Wed Jan 17 07:13:51 2007
New Revision: 7285

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine.Completion.n

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine.Completion.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine.Completion.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine.Completion.n	Wed Jan 17 07:13:51 2007
@@ -144,7 +144,7 @@
         {
           def findColonToken(i, lst) : bool * list[Token]
           { // scat tokens backward.
-            def tok = toks[i];
+            def tok = if (i < 0) null else toks[i];
             match (tok)
             {
               | Operator(":")          => (true, lst)



More information about the svn mailing list