]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Add accurate handling for backslash in C line and block comments
authorAlan Mackenzie <acm@muc.de>
Sat, 18 Jun 2022 16:41:57 +0000 (16:41 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 18 Jun 2022 16:41:57 +0000 (16:41 +0000)
commit9b44824620fd500b9e7094bd1a8ca23608cb2e5b
tree77f38c458cc3c191e08edb30f884c00b4f49f69b
parent7e1f84fa3bc7dfd84415813889c91070c0759da2
CC Mode: Add accurate handling for backslash in C line and block comments

This is needed to handle the idiosyncratic meaning of backslash in comments in
the C and C++ standards.

* lisp/progmodes/cc-engine.el: Correct a spelling error.

* lisp/progmodes/cc-mode.el (c-before-change-fix-comment-escapes)
(c-after-change-fix-comment-escapes): New functions.

* lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add
c-before-change-fix-comment-escapes to the C/Objc and C++ values.
(c-before-font-lock-functions): Add c-after-change-fix-comment-escapes to the
C/Objc and C++ values.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el