[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-engine.el
From: |
Martin Stjernholm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-engine.el |
Date: |
Tue, 26 Aug 2003 07:51:16 -0400 |
Index: emacs/lisp/progmodes/cc-engine.el
diff -c emacs/lisp/progmodes/cc-engine.el:1.33
emacs/lisp/progmodes/cc-engine.el:1.34
*** emacs/lisp/progmodes/cc-engine.el:1.33 Sun Aug 3 08:29:57 2003
--- emacs/lisp/progmodes/cc-engine.el Tue Aug 26 07:51:16 2003
***************
*** 4272,4285 ****
;; otherwise, we could be looking at a hanging member init
;; colon
(goto-char checkpoint)
! (while (eq (char-before) ?,)
! ;; this will catch member inits with multiple
! ;; line arglists
! (forward-char -1)
! (c-backward-syntactic-ws (c-point 'bol))
! (if (eq (char-before) ?\))
! (c-backward-sexp 2)
! (c-backward-sexp 1))
(c-backward-syntactic-ws lim))
(if (and (eq (char-before) ?:)
(progn
--- 4272,4287 ----
;; otherwise, we could be looking at a hanging member init
;; colon
(goto-char checkpoint)
! (while (and
! (eq (char-before) ?,)
! ;; this will catch member inits with multiple
! ;; line arglists
! (progn
! (forward-char -1)
! (c-backward-syntactic-ws (c-point 'bol))
! (c-safe (c-backward-sexp 1) t))
! (or (not (looking-at "\\s\("))
! (c-safe (c-backward-sexp 1) t)))
(c-backward-syntactic-ws lim))
(if (and (eq (char-before) ?:)
(progn