Mercurial > emacs
diff lisp/progmodes/cc-langs.el @ 84389:dcd4f2cd850a
Support new keywords added to objective-c frontend of gcc.
author | Masatake YAMATO <jet@gyve.org> |
---|---|
date | Sat, 08 Sep 2007 04:31:08 +0000 |
parents | 95004fac3361 |
children | 107ccd98fa12 bdb3fe0ba9fa |
line wrap: on
line diff
--- a/lisp/progmodes/cc-langs.el Sat Sep 08 04:00:40 2007 +0000 +++ b/lisp/progmodes/cc-langs.el Sat Sep 08 04:31:08 2007 +0000 @@ -1970,6 +1970,7 @@ "Statement keywords followed directly by a substatement." t '("do" "else") c++ '("do" "else" "try") + objc '("do" "else" "@finally" "@try") java '("do" "else" "finally" "try") idl nil) @@ -1983,6 +1984,7 @@ "Statement keywords followed by a paren sexp and then by a substatement." t '("for" "if" "switch" "while") c++ '("for" "if" "switch" "while" "catch") + objc '("for" "if" "switch" "while" "@catch" "@synchronized") java '("for" "if" "switch" "while" "catch" "synchronized") idl nil pike '("for" "if" "switch" "while" "foreach") @@ -2014,6 +2016,7 @@ (c-lang-defconst c-simple-stmt-kwds "Statement keywords followed by an expression or nothing." t '("break" "continue" "goto" "return") + objc '("break" "continue" "goto" "return" "@throw") ;; Note: `goto' is not valid in Java, but the keyword is still reserved. java '("break" "continue" "goto" "return" "throw") idl nil