]> git.eshelyaron.com Git - emacs.git/commit
Correct the indentation of C99's compound literals.
authorAlan Mackenzie <acm@muc.de>
Fri, 10 Nov 2017 17:45:22 +0000 (17:45 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 10 Nov 2017 17:45:22 +0000 (17:45 +0000)
commit096f638ddc806db875fa5bf90bb3be17b6893821
treed0b639f183b6765653eb78e22a0e6ee4394744b3
parentc52a2aa8f363f7f7a32119948ed73b7e4a0772ef
Correct the indentation of C99's compound literals.

* lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Amend so that
if there is only syntactic whitespace in a brace block, it is regarded as a
statement block.  Also, if there is no semicolon or comma delimiter, treat as
a statement block when there is a keyword.
(c-guess-basic-syntax): CASE 9 test: Regard a brace as starting a brace block
when its contents indicate a brace block.
lisp/progmodes/cc-engine.el