]> git.eshelyaron.com Git - emacs.git/commitdiff
Java Mode: Fix fontification of variable decl inside `for'
authorAlan Mackenzie <acm@muc.de>
Sun, 23 Feb 2020 12:41:20 +0000 (12:41 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 23 Feb 2020 12:41:20 +0000 (12:41 +0000)
* 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

index 447942e9a2af1a36af3dc5873da012ea4a9fae0d..bccef6890f87984cdaf482b7bb58dfdd6a06ab0d 100644 (file)
@@ -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)