(c-guess-basic-syntax):
authorKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:48:09 +0000 (07:48 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:48:09 +0000 (07:48 +0000)
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.

lisp/progmodes/cc-engine.el

index 69a61c4..7d164f9 100644 (file)
@@ -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.18
+;; Version:    See cc-mode.el
 ;; Keywords:   c languages oop
 
 ;; This file is part of GNU Emacs.
                                     (and lim
                                          (<= lim (point))
                                          (not (c-in-literal lim))
+                                         (not (eq (char-before) ?_))
                                          (looking-at c-conditional-key)
                                          ))))
                       ;; did we find a conditional?
           ;; CASE 5F: extern-lang-close?
           ((and inextern-p
                 (eq char-after-ip ?}))
-           (c-add-syntax 'extern-lang-close (aref inclass-p 1)))
+           (c-add-syntax 'extern-lang-close (aref inclass-p 0)))
           ;; CASE 5G: we are looking at the brace which closes the
           ;; enclosing nested class decl
           ((and inclass-p