Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
10489fcb
Commit
10489fcb
authored
Feb 02, 2007
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-engine.el
+5
-5
No files found.
lisp/progmodes/cc-engine.el
View file @
10489fcb
...
...
@@ -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....?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment