Correct the fontification of quote marks after buffer changes in CC Mode.
commitc8439abe22f1bb5e717f5c0f3725084c8d738155
authorAlan Mackenzie <acm@muc.de>
Sun, 3 Sep 2017 11:01:21 +0000 (3 11:01 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 3 Sep 2017 11:01:21 +0000 (3 11:01 +0000)
treeb026c82df2762959bd93cc8a457e166f4cbbc7c3
parentb733a910091c426de0d831f1ce0cda4ae736ab69
Correct the fontification of quote marks after buffer changes in CC Mode.

* lisp/progmodes/cc-defs.el
(c-search-forward-char-property-with-value-on-char): New macro.

* lisp/progmodes/cc-mode.el (c-parse-quotes-before-change)
(c-parse-quotes-after-change): Rewrite the functions, simplifying
considerably, and removing unnecessary optimisations.  Invalidate two caches
after manipulating text properties.
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-mode.el