]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix unstable fontification of doc strings.
authorAlan Mackenzie <acm@muc.de>
Sun, 15 Aug 2021 18:08:25 +0000 (18:08 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 15 Aug 2021 18:11:42 +0000 (18:11 +0000)
commitb3aec9ee483c82aa23e604ea61ce0777e9ef2ebd
treee1d7c89545b792a56d837821d1d682d362b4ba29
parentb77f6af24e9193a4f70622cda6d641c58e885c22
CC Mode: Fix unstable fontification of doc strings.

Also optimize a loop over several line doc-comments.

* lisp/progmodes/cc-fonts.el (c-font-lock-doc-comments): New variable
comment-mid, used as the starting point for applying c-doc-face-name in a
line comments.  In block comments, apply this face not from `comment-beg' but
from `region-beg', no earlier than the start of the fontification region.
lisp/progmodes/cc-fonts.el