# HG changeset patch # User Karl Heuer # Date 877592889 0 # Node ID e66d1eef0bffcfe28e26ef3536df47afbef2e9ea # Parent 1a85b213eb6dc754eaff9a189a4a1813ed8ac938 (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. diff -r 1a85b213eb6d -r e66d1eef0bff lisp/progmodes/cc-engine.el --- a/lisp/progmodes/cc-engine.el Thu Oct 23 07:47:37 1997 +0000 +++ b/lisp/progmodes/cc-engine.el Thu Oct 23 07:48:09 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.18 +;; Version: See cc-mode.el ;; Keywords: c languages oop ;; This file is part of GNU Emacs. @@ -107,6 +107,7 @@ (and lim (<= lim (point)) (not (c-in-literal lim)) + (not (eq (char-before) ?_)) (looking-at c-conditional-key) )))) ;; did we find a conditional? @@ -1181,7 +1182,7 @@ ;; 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