FIx spurious fontification of variable in Java Mode

This fixes bug#72126.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove
tentative type identifier from c-record-type-identifiers should
it turn out not to be a type.
This commit is contained in:
Alan Mackenzie 2024-07-22 12:24:43 +00:00
parent 9b426e15ab
commit caf7426f0c

View file

@ -8771,6 +8771,7 @@ multi-line strings (but not C++, for example)."
;; This function might do hidden buffer changes. ;; This function might do hidden buffer changes.
(let ((start (point)) (let ((start (point))
(old-record-type-identifiers c-record-type-identifiers)
(old-found-types (copy-hash-table c-found-types)) (old-found-types (copy-hash-table c-found-types))
;; If `c-record-type-identifiers' is set then activate ;; If `c-record-type-identifiers' is set then activate
;; recording of any found types that constitute an argument in ;; recording of any found types that constitute an argument in
@ -8807,7 +8808,8 @@ multi-line strings (but not C++, for example)."
(nconc c-record-found-types c-record-type-identifiers))) (nconc c-record-found-types c-record-type-identifiers)))
t) t)
(setq c-found-types old-found-types) (setq c-record-type-identifiers old-record-type-identifiers
c-found-types old-found-types)
(goto-char start) (goto-char start)
nil)))) nil))))