Author: fejj
Date: 2007-07-12 13:49:44 -0400 (Thu, 12 Jul 2007)
New Revision: 81887

Modified:
   trunk/monodevelop/Extras/CSharpBinding/ChangeLog
   
trunk/monodevelop/Extras/CSharpBinding/FormattingStrategy/CSharpIndentEngine.cs
Log:
2007-07-12  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * FormattingStrategy/CSharpIndentEngine.cs (PushNewLine): If we
        just popped a single-line comment, we need to do more processing.



Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-07-12 17:48:10 UTC 
(rev 81886)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-07-12 17:49:44 UTC 
(rev 81887)
@@ -1,3 +1,8 @@
+2007-07-12  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * FormattingStrategy/CSharpIndentEngine.cs (PushNewLine): If we
+       just popped a single-line comment, we need to do more processing.
+
 2007-07-11  Ankit Jain  <[EMAIL PROTECTED]>
 
        Fix bug#82024.

Modified: 
trunk/monodevelop/Extras/CSharpBinding/FormattingStrategy/CSharpIndentEngine.cs
===================================================================
--- 
trunk/monodevelop/Extras/CSharpBinding/FormattingStrategy/CSharpIndentEngine.cs 
    2007-07-12 17:48:10 UTC (rev 81886)
+++ 
trunk/monodevelop/Extras/CSharpBinding/FormattingStrategy/CSharpIndentEngine.cs 
    2007-07-12 17:49:44 UTC (rev 81887)
@@ -606,6 +606,7 @@
                
                void PushNewLine (Inside inside)
                {
+                top:
                        switch (inside) {
                        case Inside.PreProcessor:
                                // pop the preprocesor state unless the eoln is 
escaped
@@ -621,7 +622,9 @@
                                // pop the line comment
                                keyword = stack.PeekKeyword (0);
                                stack.Pop ();
-                               break;
+                               
+                               inside = stack.PeekInside (0);
+                               goto top;
                        case Inside.VerbatimString:
                                // nothing to do
                                break;

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

Reply via email to