Commit 10489fcb authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

(c-in-knr-argdecl): Slight correction for, e.g. "void (*hdone)();" in a

k&r list.  (No WS between adjacent paren groups).
parent 7bee28dc
......@@ -6256,13 +6256,13 @@ comment at the start of cc-engine.el for more info."
(catch 'knr
(while t ; go round one paren/bracket construct each time round.
(or (c-syntactic-skip-backward "^)]}")
(throw 'knr nil)) ; no more bpb pairs left.
(c-syntactic-skip-backward "^)]}")
(cond ((eq (char-before) ?\))
(setq after-rparen (point)))
((eq (char-before) ?\})
(throw 'knr nil))
(t (setq after-rparen nil))) ; "]"
((eq (char-before) ?\])
(setq after-rparen nil))
(t ; either } (hit previous defun) or no more parens/brackets
(throw 'knr nil)))
(if after-rparen
;; We're inside a paren. Could it be our argument list....?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment