]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fontify unbalanced quotes in unconstrained multiline strings, etc.
authorAlan Mackenzie <acm@muc.de>
Fri, 8 Jun 2018 16:42:18 +0000 (16:42 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 8 Jun 2018 16:42:18 +0000 (16:42 +0000)
commitfe06f643b2808b198bb58bda04a8c863e55a2a56
tree6b6cefea3df9647cea1a3315f59c7936d56965e3
parentdb353b8649cdae54146308e4c875e53d02b0aaee
CC Mode: Fontify unbalanced quotes in unconstrained multiline strings, etc.

("Unconstrained" meaning that every string is multiline, without needing such
special marking as used by Pike Mode.)

* lisp/progmodes/cc-mode.el (c-pps-to-string-delim): Don't process the char
before BOB.
(c-multiline-string-check-final-quote): New function.
(c-bc-changed-stringiness): New variable.
(c-before-change-check-unbalanced-strings): Add handling for unconstrained
multiline strings.
(c-after-change-re-mark-unbalanced-strings): Add handling for unconstrained
multiline strings.  Handle escaped double quotes more accurately.
lisp/progmodes/cc-mode.el