]> code.delx.au - gnu-emacs/commit
Amend CC Mode to handle big C++ raw strings correctly.
authorAlan Mackenzie <acm@muc.de>
Tue, 12 Jul 2016 13:16:02 +0000 (13:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 12 Jul 2016 13:16:02 +0000 (13:16 +0000)
commita1db933c5b68165879ada5ddf3c2585d1e7e893d
tree09821d2158098da3b98100feaea445ed95a2fbfd
parent2f67f8a145af8f185f644b1d094a03895a124ef1
Amend CC Mode to handle big C++ raw strings correctly.

Problems were caused by such a string spanning jit-lock chunks, and by a flaw
in the +-500 bytes boundaries imposed for macros.

* lisp/progmodes/cc-mode.el (c-extend-region-for-CPP): Check the +-500 byte
macro boundaries here.
(c-extend-font-lock-region-for-macros): Remove the check on the +-500 byte
lower boundary.  Fix the check on the upper boundary.

* lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Handle the starting
point already being within a raw string.

* lisp/progmodes/cc-engine.el (c-raw-string-pos)
(c-depropertize-raw-strings-in-region, c-after-change-re-mark-raw-strings):
Modify regexp element "\\{,16\\}" to "\\{0,16\\}" for greater compatibility
with other Emacsen.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-mode.el