aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-09 18:28:54 +0000
committerRichard M. Stallman1997-08-09 18:28:54 +0000
commitd0c50a29ad600e8a0c3cd042438f86b13fd678a6 (patch)
treedc11477885e703411b02f3ebb90da5e57d974bcd
parentfb032a95337268c0e7561dcdddc3e09da402b1a1 (diff)
downloademacs-d0c50a29ad600e8a0c3cd042438f86b13fd678a6.tar.gz
emacs-d0c50a29ad600e8a0c3cd042438f86b13fd678a6.zip
(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.
-rw-r--r--lisp/progmodes/cc-engine.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 2c3b22cd249..462288333ef 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -7,7 +7,7 @@
7;; 1985 Richard M. Stallman 7;; 1985 Richard M. Stallman
8;; Maintainer: cc-mode-help@python.org 8;; Maintainer: cc-mode-help@python.org
9;; Created: 22-Apr-1997 (split from cc-mode.el) 9;; Created: 22-Apr-1997 (split from cc-mode.el)
10;; Version: 5.13 10;; Version: 5.14
11;; Keywords: c languages oop 11;; Keywords: c languages oop
12 12
13;; This file is part of GNU Emacs. 13;; This file is part of GNU Emacs.
@@ -57,7 +57,7 @@
57 (setq saved (point)) 57 (setq saved (point))
58 t)) 58 t))
59 (progn (c-backward-syntactic-ws lim) 59 (progn (c-backward-syntactic-ws lim)
60 (memq (char-before) '(?\; ?{ ?} ?:))) 60 (memq (char-before) '(?\; ?{ ?:)))
61 ) 61 )
62 (setq last-begin saved) 62 (setq last-begin saved)
63 (goto-char last-begin) 63 (goto-char last-begin)
@@ -1249,6 +1249,8 @@
1249 (if inclass-p 1249 (if inclass-p
1250 (progn 1250 (progn
1251 (goto-char (aref inclass-p 1)) 1251 (goto-char (aref inclass-p 1))
1252 (or (= (point) (c-point 'boi))
1253 (goto-char (aref inclass-p 0)))
1252 (if inextern-p 1254 (if inextern-p
1253 (c-add-syntax 'inextern-lang) 1255 (c-add-syntax 'inextern-lang)
1254 (c-add-syntax 'inclass (c-point 'boi))))) 1256 (c-add-syntax 'inclass (c-point 'boi)))))