1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Add keywords var and final to Java Mode

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Add
java entry for final.
(c-no-type-kwds): Add java entry for var.
This commit is contained in:
Arsen Arsenović 2025-01-08 13:57:33 +00:00 committed by Alan Mackenzie
parent 5eca08bb23
commit 6df0e18fed

View file

@ -2384,6 +2384,7 @@ fontified with the keyword face and not the type face."
c '("const" "restrict" "volatile")
c++ '("const" "noexcept" "volatile")
objc '("const" "volatile")
java '("final")
t (append (c-lang-const c-no-type-kwds)
(c-lang-const c-type-modifier-prefix-kwds)))
@ -2635,7 +2636,8 @@ will be handled."
(c-lang-defconst c-no-type-kwds
"Keywords which remove the need to specify a type in declarations"
t nil
c++ '("auto"))
c++ '("auto")
java '("var"))
(c-lang-defconst c-no-type-key
;; Regexp matching an entry from `c-no-type-kwds'