]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Don't start fontifying in the middle of an identifier
authorAlan Mackenzie <acm@muc.de>
Sun, 14 Apr 2024 08:21:56 +0000 (08:21 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:11:37 +0000 (19:11 +0200)
commit5b629f76117c999424965df4446627b32b4c1056
treecad268b852b7ee1bd59dfce9995c5511428c242c
parent1d33c3f9906be7dedc9135b03c4977af7adff21a
CC Mode: Don't start fontifying in the middle of an identifier

This fixes bug#70367.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): After searching
backwards for the end of the previous statement, check whether
or not we found it.

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