[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 693749c: Java Mode: Fix fontification of variable decl inside `
From: |
Alan Mackenzie |
Subject: |
emacs-27 693749c: Java Mode: Fix fontification of variable decl inside `for' |
Date: |
Sun, 23 Feb 2020 07:43:30 -0500 (EST) |
branch: emacs-27
commit 693749c60fd7b3bdd22680c1f06158a7a6e5bd63
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
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 447942e..bccef68 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 693749c: Java Mode: Fix fontification of variable decl inside `for',
Alan Mackenzie <=