From: Stefan Monnier Date: Tue, 25 Feb 2003 01:36:23 +0000 (+0000) Subject: (back_comment): Only check nestedness of 2nd char if needed. X-Git-Tag: ttn-vms-21-2-B4~11039 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d070eb221d54a4a15a42b72388297cc4b77ef9a5;p=emacs.git (back_comment): Only check nestedness of 2nd char if needed. --- diff --git a/src/syntax.c b/src/syntax.c index 799f44d3c2f..cd0d52f3390 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -609,7 +609,7 @@ back_comment (from, from_byte, stop, comnested, comstyle, charpos_ptr, bytepos_p case Sendcomment: if (SYNTAX_FLAGS_COMMENT_STYLE (syntax) == comstyle - && (SYNTAX_FLAGS_COMMENT_NESTED (prev_syntax) + && ((com2end && SYNTAX_FLAGS_COMMENT_NESTED (prev_syntax)) || SYNTAX_FLAGS_COMMENT_NESTED (syntax)) == comnested) /* This is the same style of comment ender as ours. */ {