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:
parent
5eca08bb23
commit
6df0e18fed
1 changed files with 3 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue