diff options
author | Alan Mackenzie <acm@muc.de> | 2016-01-23 19:38:49 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2016-01-23 19:38:49 +0000 |
commit | a1865bcf966eafdce28f50fb8a19c1bfd831079a (patch) | |
tree | dcb1e7f0a1d41a1328e0e3d2a1649f31dfd9488f /lisp/progmodes/cc-langs.el | |
parent | 76045f7d6f654ea20e09412e5054f9159d1bb142 (diff) | |
download | emacs-a1865bcf966eafdce28f50fb8a19c1bfd831079a.tar.gz emacs-a1865bcf966eafdce28f50fb8a19c1bfd831079a.tar.bz2 emacs-a1865bcf966eafdce28f50fb8a19c1bfd831079a.zip |
Distinguish the two meanings of Java's keyword "default". Fixes bug #22358.
* lisp/progmodes/cc-engine.el (c-guess-basic-syntax CASE 14): Check the
context of case labels (including "default") more rigorously.
(c-guess-basic-syntax CASE 15): Consequential amendment.
* lisp/progmodes/cc-langs.el (c-modifier-kwds): Add "default" to Java's value.
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r-- | lisp/progmodes/cc-langs.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 48dd9960886..8a1d43c627c 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -1980,8 +1980,8 @@ will be handled." ;; In CORBA CIDL: "bindsTo" "delegatesTo" "implements" "proxy" "storedOn") ;; Note: "const" is not used in Java, but it's still a reserved keyword. - java '("abstract" "const" "final" "native" "private" "protected" "public" - "static" "strictfp" "synchronized" "transient" "volatile") + java '("abstract" "const" "default" "final" "native" "private" "protected" + "public" "static" "strictfp" "synchronized" "transient" "volatile") pike '("final" "inline" "local" "nomask" "optional" "private" "protected" "public" "static" "variant")) |