changeset 27719:73926d5a4d9f

(Fforward_comment): Undo the previous change, since cc-mode depends on the previous behavior.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 17 Feb 2000 05:57:38 +0000
parents 6a9980be1d1c
children c727b02df258
files src/ChangeLog src/syntax.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file src/ChangeLog has changed
--- a/src/syntax.c	Wed Feb 16 22:58:42 2000 +0000
+++ b/src/syntax.c	Thu Feb 17 05:57:38 2000 +0000
@@ -1910,15 +1910,19 @@
 				    &out_charpos, &out_bytepos);
 	      if (found == -1)
 		{
-		  /* Failure: we have to skip the one or two chars of the
+#if 0	/* cc-mode (and maybe others) relies on the bogus behavior.  */
+		  /* Failure: we should go back to the end of this
 		     not-quite-endcomment.  */
 		  if (SYNTAX(c) != code)
 		    /* It was a two-char Sendcomment.  */
 		    INC_BOTH (from, from_byte);
 		  goto leave;
+#endif
 		}
-	      /* We have skipped one comment.  */
-	      from = out_charpos, from_byte = out_bytepos;
+	      else
+		/* We have skipped one comment.  */
+		from = out_charpos, from_byte = out_bytepos;
+	      break;
 	    }
 	  else if (code != Swhitespace && code != Scomment)
 	    {