]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: fix minor errors in the fontification of enums.
authorAlan Mackenzie <acm@muc.de>
Sat, 21 Sep 2024 16:46:32 +0000 (16:46 +0000)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Sep 2024 10:45:28 +0000 (12:45 +0200)
commit2155363c1dac65c911cba73a35913f1566ef0c7c
tree03d079d74abcf6fac9500c69596c7a25d536088a
parent424b2a5e13ba8854cfe4f90e070fe0eb859d9add
CC Mode: fix minor errors in the fontification of enums.

1: Fix the typing of a space on the { line in an enum
specification which is the first item in a buffer.  This
defontified the enum's identifiers.
2: Fix the typing of a space on the line of the enum's last
identifier.  This defontified that identifier for
jit-lock-context-time.

* lisp/progmodes/cc-engine.el (c-forward-declarator): Cease
rejecting the identifier if there are no further tokens before
LIMIT.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): Accept a
backward search as succeeding if it hits point-min.

(cherry picked from commit 086cb1b590251ca353fec5a841ea882cdf9cbcb2)
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el