(c-guess-basic-syntax, CASE 5A.5): Anchor the "{" of a template function
correctly on "template", not the following "<".
This commit is contained in:
parent
8971073987
commit
86f4a763d4
1 changed files with 9 additions and 6 deletions
|
@ -8033,12 +8033,15 @@ comment at the start of cc-engine.el for more info."
|
|||
|
||||
;; CASE 5A.5: ordinary defun open
|
||||
(t
|
||||
(goto-char placeholder)
|
||||
(if (or containing-decl-open macro-start)
|
||||
(c-add-syntax 'defun-open (c-point 'boi))
|
||||
;; Bogus to use bol here, but it's the legacy.
|
||||
(c-add-syntax 'defun-open (c-point 'bol)))
|
||||
)))
|
||||
(save-excursion
|
||||
(c-beginning-of-decl-1 lim)
|
||||
(while (looking-at c-specifier-key)
|
||||
(goto-char (match-end 1))
|
||||
(c-forward-syntactic-ws indent-point))
|
||||
(c-add-syntax 'defun-open (c-point 'boi))
|
||||
;; Bogus to use bol here, but it's the legacy. (Resolved,
|
||||
;; 2007-11-09)
|
||||
))))
|
||||
|
||||
;; CASE 5B: After a function header but before the body (or
|
||||
;; the ending semicolon if there's no body).
|
||||
|
|
Loading…
Add table
Reference in a new issue