summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2020-02-23 12:41:20 +0000
committerAlan Mackenzie <acm@muc.de>2020-02-23 12:41:20 +0000
commit693749c60fd7b3bdd22680c1f06158a7a6e5bd63 (patch)
treeedb9fe09c6294be3e481cde4a9d7b838b0e84720
parent884b68ca2c63c98d3fa90ca5f11b47286d2fb85c (diff)
downloademacs-693749c60fd7b3bdd22680c1f06158a7a6e5bd63.tar.gz
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.
-rw-r--r--lisp/progmodes/cc-engine.el2
1 files changed, 1 insertions, 1 deletions
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)