changeset 19251:6a7d40ec4b29

(c-beginning-of-statement-1): When checking for bare semi, don't match on a semi following a close brace. (c-guess-basic-syntax): CASE 5I: When adding 'inclass syntax, use the relpos pointing to the class opening brace, unless that hangs on the right side, in which case, use the start of the class/struct keyword.
author Richard M. Stallman <rms@gnu.org>
date Sat, 09 Aug 1997 18:28:54 +0000
parents 23f71af4d504
children b573491d7c8f
files lisp/progmodes/cc-engine.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-engine.el	Sat Aug 09 18:26:19 1997 +0000
+++ b/lisp/progmodes/cc-engine.el	Sat Aug 09 18:28:54 1997 +0000
@@ -7,7 +7,7 @@
 ;;             1985 Richard M. Stallman
 ;; Maintainer: cc-mode-help@python.org
 ;; Created:    22-Apr-1997 (split from cc-mode.el)
-;; Version:    5.13
+;; Version:    5.14
 ;; Keywords:   c languages oop
 
 ;; This file is part of GNU Emacs.
@@ -57,7 +57,7 @@
 			    (setq saved (point))
 			    t))
 	     (progn (c-backward-syntactic-ws lim)
-		    (memq (char-before) '(?\; ?{ ?} ?:)))
+		    (memq (char-before) '(?\; ?{ ?:)))
 	     )
 	(setq last-begin saved)
       (goto-char last-begin)
@@ -1249,6 +1249,8 @@
 	      (if inclass-p
 		  (progn
 		    (goto-char (aref inclass-p 1))
+		    (or (= (point) (c-point 'boi))
+			(goto-char (aref inclass-p 0)))
 		    (if inextern-p
 			(c-add-syntax 'inextern-lang)
 		      (c-add-syntax 'inclass (c-point 'boi)))))