summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2024-10-25 20:35:32 +0000
committerAlan Mackenzie <acm@muc.de>2024-10-25 20:35:32 +0000
commit76268160ba9262a8479589427b8e783db0242260 (patch)
treeea4df3f3d2d319160991412f94530d44ccaa4b17 /lisp/emacs-lisp/regexp-opt.el
parent3d508157e03597b00c46c82d42a60742c01a0250 (diff)
downloademacs-76268160ba9262a8479589427b8e783db0242260.tar.gz
emacs-76268160ba9262a8479589427b8e783db0242260.tar.bz2
emacs-76268160ba9262a8479589427b8e783db0242260.zip
CC Mode: correct handling of properties on #include <...>
In C, Pike, and IDL Modes, deleting and reinserting such a < could create havoc with the category/syntax-table properties on the < and >. Also the contents of <...> should only get paren properties when the #include is present and correct. * lisp/progmodes/cc-fonts.el (c-cpp-matchers): Replace the c-make-font-lock-search-function which put properties on the <...> with a simple matcher. * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions) (c-before-font-lock-functions): Add respectively c-before-change-include-<> and c-after-change-include-<> in the C, Pike and IDL entries of these variables. * lisp/progmodes/cc-mode.el (c-before-change-include-<>) (c-after-change-include-<>): New functions.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions