summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cpp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2016-07-12 13:16:02 +0000
committerAlan Mackenzie <acm@muc.de>2016-07-12 13:16:02 +0000
commita1db933c5b68165879ada5ddf3c2585d1e7e893d (patch)
tree09821d2158098da3b98100feaea445ed95a2fbfd /lisp/progmodes/cpp.el
parent2f67f8a145af8f185f644b1d094a03895a124ef1 (diff)
downloademacs-a1db933c5b68165879ada5ddf3c2585d1e7e893d.tar.gz
emacs-a1db933c5b68165879ada5ddf3c2585d1e7e893d.tar.bz2
emacs-a1db933c5b68165879ada5ddf3c2585d1e7e893d.zip
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.
Diffstat (limited to 'lisp/progmodes/cpp.el')
0 files changed, 0 insertions, 0 deletions