]> git.eshelyaron.com Git - emacs.git/commit
CC Mode. Preserve space syntax-table props in open strings
authorAlan Mackenzie <acm@muc.de>
Sun, 31 Dec 2023 11:02:50 +0000 (11:02 +0000)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:57:24 +0000 (08:57 +0100)
commit732227c8ba7e898a4868ccc48d950551916c84b2
tree35199bd0b4c19708768384dc4b3a3e0815a66758
parentaaee85b58b678d4b213e4ca52b90d98a42a98cb3
CC Mode.  Preserve space syntax-table props in open strings

This fixes bug#68111, allowing, e.g., backward-kill-word to
work properly.

* lisp/progmodes/cc-mode.el (c-clear-string-fences): On an open
string which isn't followed by another string, remove the
syntax-table properties just from template delimiters rather
than setting the syntax-table properties of all the string to
punctuation.

(cherry picked from commit 91f316d293150c6d025c61949c24fc07136fb1fd)
lisp/progmodes/cc-mode.el