diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-02-17 05:57:38 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2000-02-17 05:57:38 +0000 |
commit | 2b927d02c82223c9731b868f0b0c75c36a8c3d4f (patch) | |
tree | 2ff799b1a72a962e4976a59b1224890e05be5349 /src/syntax.c | |
parent | 84fe35f0e4753adf6027da81e7427ae371267873 (diff) | |
download | emacs-2b927d02c82223c9731b868f0b0c75c36a8c3d4f.tar.gz |
(Fforward_comment): Undo the previous change, since cc-mode
depends on the previous behavior.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c index 43f49dae9cf..c7e60ce1894 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1910,15 +1910,19 @@ between them, return t; otherwise return nil.") &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) { |