c-parse-state. Don't "append-lower-brace-pair" in certain
authorAlan Mackenzie <acm@muc.de>
Sun, 2 Feb 2014 16:28:52 +0000 (16:28 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 2 Feb 2014 16:28:52 +0000 (16:28 +0000)
commit99f7b0a6d66398d87368448346de104fe8b6531b
treefafc989ad34d0495e648073bcab6a566ad30e2dc
parentf0a105764675324e5ea1f64f5592ab79a9da001f
c-parse-state.  Don't "append-lower-brace-pair" in certain
circumstances.  Also fix an obscure bug where "\\s!" shouldn't be
recognised as a comment.

* progmodes/cc-engine.el (c-state-pp-to-literal): Check for "\\s!"
as well as normal comment starter.
(c-parse-state-get-strategy): Extra return possibility
'back-and-forward.
(c-remove-stale-state-cache): Extra element CONS-SEPARATED in
return value list to indicate replacement of a brace-pair cons
with its car.
(c-parse-state-1): With 'back-and-forward, only call
c-append-lower-brace-pair-to state-cache when cons-separated.
lisp/ChangeLog
lisp/progmodes/cc-engine.el