]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Prevent "const" inside an identifier being recognized as the keyword
authorAlan Mackenzie <acm@muc.de>
Tue, 2 Feb 2021 20:34:42 +0000 (20:34 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 2 Feb 2021 20:34:42 +0000 (20:34 +0000)
commit9a67da98a25f545ff68540e01a06bc62605ee147
tree82b4e27a9dbdc89785d64630ab41dcf761fabe46
parent04ab3904eddc01af918fb85b8712cd5d45238468
CC Mode: Prevent "const" inside an identifier being recognized as the keyword

This fixes bug #45560.

* lisp/progmodes/cc-engine.el (c-forward-declarator)
(c-forward-decl-or-cast-1): Amend certain regexp match numbers on account of
the change below.  Surround some looking-at calls with save-match-data.

* lisp/progmodes/cc-langs.el (c-type-decl-prefix-keywords-key): New lang
const.
(c-type-decl-prefix-key): Reformulate to match operators and keywords
separately, using the new lang const (above).
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el