]> git.eshelyaron.com Git - emacs.git/commitdiff
(back_comment): Only check nestedness of 2nd char if needed.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 25 Feb 2003 01:36:23 +0000 (01:36 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 25 Feb 2003 01:36:23 +0000 (01:36 +0000)
src/syntax.c

index 799f44d3c2fe8b3ab49c0982388538dc435c1b8d..cd0d52f33902a0df7e97730c4313f3449fc24fc2 100644 (file)
@@ -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. */
            {