changeset 627:a813963500d8

[xemacs-hg @ 2001-07-12 06:29:08 by tuck] Fix scan_sexps `unbalanced parentheses' bug when dealing with mixed comment styles in c++/java/etc. mode
author tuck
date Thu, 12 Jul 2001 06:29:10 +0000
parents 04513e008e7f
children e545f3ec2337
files src/ChangeLog src/syntax.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Jul 02 21:00:03 2001 +0000
+++ b/src/ChangeLog	Thu Jul 12 06:29:10 2001 +0000
@@ -1,3 +1,9 @@
+2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
+
+	* syntax.c (find_start_of_comment):
+	Fix `unbalanced parentheses' bug when dealing with mixed comment
+	styles in c++/java/etc. mode
+
 2001-06-21  Ben Wing  <ben@xemacs.org>
 
 	* dired-msw.c (Fmswindows_insert_directory):
--- a/src/syntax.c	Mon Jul 02 21:00:03 2001 +0000
+++ b/src/syntax.c	Thu Jul 12 06:29:10 2001 +0000
@@ -678,7 +678,7 @@
 		  {
 		    code = Sendcomment;
 		    styles_match_p =
-		      SYNTAX_CODES_COMMENT_MASK_END (prev_syncode, syncode);
+		      SYNTAX_CODES_COMMENT_MASK_END (prev_syncode, syncode) & mask;
 		    from--;
 		    UPDATE_SYNTAX_CACHE_BACKWARD (from);
 		    c = BUF_FETCH_CHAR (buf, from);
@@ -701,7 +701,7 @@
 		  {
 		    code = Scomment;
 		    styles_match_p =
-		      SYNTAX_CODES_COMMENT_MASK_START (prev_syncode, syncode);
+		      SYNTAX_CODES_COMMENT_MASK_START (prev_syncode, syncode) & mask;
 		    from--;
 		    UPDATE_SYNTAX_CACHE_BACKWARD (from);
 		    c = BUF_FETCH_CHAR (buf, from);