From 693749c60fd7b3bdd22680c1f06158a7a6e5bd63 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 23 Feb 2020 12:41:20 +0000 Subject: [PATCH] Java Mode: Fix fontification of variable decl inside `for' * lisp/progmodes/cc-engine.el (c-forward-declarator): In place of a test for C++ Mode, test for either C++ Mode or Java Mode. --- lisp/progmodes/cc-engine.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 447942e9a2a..bccef6890f8 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -9034,7 +9034,7 @@ point unchanged and return nil." (if (looking-at c-:-op-cont-regexp) (progn (goto-char (match-end 0)) t) (not - (and (c-major-mode-is 'c++-mode) + (and (c-major-mode-is '(c++-mode java-mode)) (save-excursion (and (c-go-up-list-backward) -- 2.39.2