# HG changeset patch # User Stefan Monnier # Date 950767058 0 # Node ID 73926d5a4d9f32fe7c8d0d861e05602a1d04fb72 # Parent 6a9980be1d1c2e5a3ac99ad3d5952acce322bd97 (Fforward_comment): Undo the previous change, since cc-mode depends on the previous behavior. diff -r 6a9980be1d1c -r 73926d5a4d9f src/ChangeLog Binary file src/ChangeLog has changed diff -r 6a9980be1d1c -r 73926d5a4d9f src/syntax.c --- 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) {