summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/generate-lisp-file.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2023-02-03 20:55:59 +0000
committerAlan Mackenzie <acm@muc.de>2023-02-03 20:55:59 +0000
commit0a95a81d8d36722ccf030a6194ecd953fc257a59 (patch)
tree1f93607e5b19320aaeb8818fcdab2eac8c937517 /lisp/emacs-lisp/generate-lisp-file.el
parentac7ec87a7a0db887e4ae7fe9005aea517958b778 (diff)
downloademacs-0a95a81d8d36722ccf030a6194ecd953fc257a59.tar.gz
emacs-0a95a81d8d36722ccf030a6194ecd953fc257a59.tar.bz2
emacs-0a95a81d8d36722ccf030a6194ecd953fc257a59.zip
CC Mode: Fontify a certain foo * bar class by the asymmetric space heuristic
This fixes bug #61144. If the space around the * is "symmetric" we leave foo * bar unfontified, a multiplication operation. If it is "asymmetric" we fontify it as a pointer declaration. * lisp/progmodes/cc-engine.el (c-fdoc-assymetric-space-about-asterisk): New macro, extracted from c-forward-decl-or-cast-1. (c-forward-decl-or-cast-1): Invoke the new macro twice, in CASE 16 (new) and CASE 17.5 (the source of the macro). In CASE 16, additionally set unsafe-maybe when appropriate.
Diffstat (limited to 'lisp/emacs-lisp/generate-lisp-file.el')
0 files changed, 0 insertions, 0 deletions