Make typing into incomplete C++ raw strings work, and make it work fast enough
commit7a20ebe5ca884954e34c5129f70c211fef266369
authorAlan Mackenzie <acm@muc.de>
Thu, 23 Jun 2016 16:12:45 +0000 (23 16:12 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 23 Jun 2016 16:12:45 +0000 (23 16:12 +0000)
treee045011fd9b5f8272b4cfff7960a91e42b2b1596
parent11a17619737b16d10bfad03b52097943eebc517f
Make typing into incomplete C++ raw strings work, and make it work fast enough

* lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-state-pp-to-literal):
Put `save-match-data' around calls to `looking-at' to enable the use of the
match data in higher level functions.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations)
(c-font-lock-cut-off-declarators): Use `limit' rather than `(point-max)' as a
limit to speed up handling of C++ raw strings.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el