Skip to content

Commit caf7426

Browse files
author
Alan Mackenzie
committed
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.
1 parent 9b426e1 commit caf7426

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lisp/progmodes/cc-engine.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8771,6 +8771,7 @@ multi-line strings (but not C++, for example)."
87718771
;; This function might do hidden buffer changes.
87728772

87738773
(let ((start (point))
8774+
(old-record-type-identifiers c-record-type-identifiers)
87748775
(old-found-types (copy-hash-table c-found-types))
87758776
;; If `c-record-type-identifiers' is set then activate
87768777
;; recording of any found types that constitute an argument in
@@ -8807,7 +8808,8 @@ multi-line strings (but not C++, for example)."
88078808
(nconc c-record-found-types c-record-type-identifiers)))
88088809
t)
88098810

8810-
(setq c-found-types old-found-types)
8811+
(setq c-record-type-identifiers old-record-type-identifiers
8812+
c-found-types old-found-types)
88118813
(goto-char start)
88128814
nil))))
88138815

0 commit comments

Comments
 (0)