Author: mkrueger
Date: 2007-10-09 07:42:25 -0400 (Tue, 09 Oct 2007)
New Revision: 87156

Modified:
   trunk/monodevelop/Core/src/NRefactory/ChangeLog
   trunk/monodevelop/Core/src/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs
Log:
* Project/Src/Lexer/CSharp/Lexer.cs: fixed compilation error.

Modified: trunk/monodevelop/Core/src/NRefactory/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/NRefactory/ChangeLog     2007-10-09 11:35:03 UTC 
(rev 87155)
+++ trunk/monodevelop/Core/src/NRefactory/ChangeLog     2007-10-09 11:42:25 UTC 
(rev 87156)
@@ -1,5 +1,9 @@
 2007-10-09  Mike Krüger <[EMAIL PROTECTED]> 
 
+       * Project/Src/Lexer/CSharp/Lexer.cs: fixed compilation error.
+
+2007-10-09  Mike Krüger <[EMAIL PROTECTED]> 
+
        * Project/Src/Lexer/CSharp/Lexer.cs: Fixed "Bug 331772 - Unable to 
handle
          conditional class definition".
 

Modified: 
trunk/monodevelop/Core/src/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs
===================================================================
--- trunk/monodevelop/Core/src/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs     
2007-10-09 11:35:03 UTC (rev 87155)
+++ trunk/monodevelop/Core/src/NRefactory/Project/Src/Lexer/CSharp/Lexer.cs     
2007-10-09 11:42:25 UTC (rev 87156)
@@ -48,12 +48,14 @@
                        Location start = new Location(Col - 1, Line);
                        bool canBeKeyword;
                        string directive = ReadIdent('#', out canBeKeyword);
-                       string argument  = ReadToEndOfLine();
+                       string argument  = ReadToEndOfLine();
+                       string define;
+                       int idx;
                        switch (directive) {
                        case "#if":
                                readIf    = true;
-                               string define = argument.Trim ();
-                               int idx = define.IndexOfAny (new char [] { ' ', 
'\t' });
+                               define = argument.Trim ();
+                               idx = define.IndexOfAny (new char [] { ' ', 
'\t' });
                                if (idx > 0)
                                        define = define.Substring (0, idx);
                                skipToken = !IsDefined (define);
@@ -61,8 +63,8 @@
                        case "#elif":
                                if (!readIf)
                                        break;
-                               string define = argument.Trim ();
-                               int idx = define.IndexOfAny (new char [] { ' ', 
'\t' });
+                               define = argument.Trim ();
+                               idx = define.IndexOfAny (new char [] { ' ', 
'\t' });
                                if (idx > 0)
                                        define = define.Substring (0, idx);
                                skipToken = !IsDefined (define);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to