]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Compensate for backward-sexp ignoring trailing commas after {...}
authorAlan Mackenzie <acm@muc.de>
Fri, 7 Dec 2018 17:38:03 +0000 (17:38 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 7 Dec 2018 17:39:38 +0000 (17:39 +0000)
commitf6a69957d654f0d0d870209da303b4e9360d577e
tree940a89be49699d8cc507714c7daa2bd00847051d
parent294b2c2bb71f1f7e7024a854d4a4ae43785d9594
CC Mode: Compensate for backward-sexp ignoring trailing commas after {...}

This fixes bug #32808.

* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): New variable
comma-delimited, set when we're about to scan backward over a comma.  Do not
reckon a brace block as bounding a statement when it is followed or preceded
by a comma (except when argument comma-delim is non-nil).
(c-guess-basic-syntax, CASE 9C): Call c-beginning-of-statement-1 with argument
comma-delim changed to non-nil.
lisp/progmodes/cc-engine.el