Mercurial > emacs
comparison lisp/progmodes/cc-engine.el @ 79953:6b6540ecfecf
(c-guess-basic-syntax, CASE 5A.5): Anchor the "{" of a template function
correctly on "template", not the following "<".
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Tue, 29 Jan 2008 20:17:44 +0000 |
parents | c87032622eda |
children | e67a400370f5 |
comparison
equal
deleted
inserted
replaced
79952:efaa1cd7126b | 79953:6b6540ecfecf |
---|---|
8028 containing-decl-kwd | 8028 containing-decl-kwd |
8029 paren-state)) | 8029 paren-state)) |
8030 | 8030 |
8031 ;; CASE 5A.5: ordinary defun open | 8031 ;; CASE 5A.5: ordinary defun open |
8032 (t | 8032 (t |
8033 (goto-char placeholder) | 8033 (save-excursion |
8034 (if (or containing-decl-open macro-start) | 8034 (c-beginning-of-decl-1 lim) |
8035 (c-add-syntax 'defun-open (c-point 'boi)) | 8035 (while (looking-at c-specifier-key) |
8036 ;; Bogus to use bol here, but it's the legacy. | 8036 (goto-char (match-end 1)) |
8037 (c-add-syntax 'defun-open (c-point 'bol))) | 8037 (c-forward-syntactic-ws indent-point)) |
8038 ))) | 8038 (c-add-syntax 'defun-open (c-point 'boi)) |
8039 ;; Bogus to use bol here, but it's the legacy. (Resolved, | |
8040 ;; 2007-11-09) | |
8041 )))) | |
8039 | 8042 |
8040 ;; CASE 5B: After a function header but before the body (or | 8043 ;; CASE 5B: After a function header but before the body (or |
8041 ;; the ending semicolon if there's no body). | 8044 ;; the ending semicolon if there's no body). |
8042 ((save-excursion | 8045 ((save-excursion |
8043 (when (setq placeholder (c-just-after-func-arglist-p lim)) | 8046 (when (setq placeholder (c-just-after-func-arglist-p lim)) |