diff options
| author | Karl Heuer | 1997-10-23 07:48:09 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-23 07:48:09 +0000 |
| commit | 6430c434e3d5e2fb74f3cd01f92cee64ab94864d (patch) | |
| tree | ca7f388a536f0a45fb8f0c8b4698bdaa93cd139e | |
| parent | 81eb2ff929532c4f87f49913a2ee4ecea0bf6c37 (diff) | |
| download | emacs-6430c434e3d5e2fb74f3cd01f92cee64ab94864d.tar.gz emacs-6430c434e3d5e2fb74f3cd01f92cee64ab94864d.zip | |
(c-guess-basic-syntax):
CASE 5F: extern-lang-close relpos should be
element 0 of inclass-p, not element 1.
(c-beginning-of-statement-1):
Watch out for keywords which have a
preceding underscore.
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 69a61c4f0fb..7d164f9e868 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.18 | 10 | ;; Version: See cc-mode.el |
| 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. |
| @@ -107,6 +107,7 @@ | |||
| 107 | (and lim | 107 | (and lim |
| 108 | (<= lim (point)) | 108 | (<= lim (point)) |
| 109 | (not (c-in-literal lim)) | 109 | (not (c-in-literal lim)) |
| 110 | (not (eq (char-before) ?_)) | ||
| 110 | (looking-at c-conditional-key) | 111 | (looking-at c-conditional-key) |
| 111 | )))) | 112 | )))) |
| 112 | ;; did we find a conditional? | 113 | ;; did we find a conditional? |
| @@ -1181,7 +1182,7 @@ | |||
| 1181 | ;; CASE 5F: extern-lang-close? | 1182 | ;; CASE 5F: extern-lang-close? |
| 1182 | ((and inextern-p | 1183 | ((and inextern-p |
| 1183 | (eq char-after-ip ?})) | 1184 | (eq char-after-ip ?})) |
| 1184 | (c-add-syntax 'extern-lang-close (aref inclass-p 1))) | 1185 | (c-add-syntax 'extern-lang-close (aref inclass-p 0))) |
| 1185 | ;; CASE 5G: we are looking at the brace which closes the | 1186 | ;; CASE 5G: we are looking at the brace which closes the |
| 1186 | ;; enclosing nested class decl | 1187 | ;; enclosing nested class decl |
| 1187 | ((and inclass-p | 1188 | ((and inclass-p |