diff options
author | Alan Mackenzie <acm@muc.de> | 2020-02-23 12:41:20 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-02-23 12:41:20 +0000 |
commit | 693749c60fd7b3bdd22680c1f06158a7a6e5bd63 (patch) | |
tree | edb9fe09c6294be3e481cde4a9d7b838b0e84720 | |
parent | 884b68ca2c63c98d3fa90ca5f11b47286d2fb85c (diff) | |
download | emacs-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.el | 2 |
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) |