changeset 49971:afbb2d6d2f07

(back_comment): Only check nestedness of 2nd char if needed.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 25 Feb 2003 01:36:23 +0000
parents b24aa35dff94
children 0b437aaddba5
files src/syntax.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Mon Feb 24 23:49:27 2003 +0000
+++ b/src/syntax.c	Tue Feb 25 01:36:23 2003 +0000
@@ -609,7 +609,7 @@
 
 	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. */
 	    {