Mercurial > emacs
changeset 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 | 218339cfde04 |
children | 28620c3d5a1a |
files | lisp/ChangeLog lisp/progmodes/cc-langs.el |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Sep 08 04:00:40 2007 +0000 +++ b/lisp/ChangeLog Sat Sep 08 04:31:08 2007 +0000 @@ -1,3 +1,11 @@ +2007-09-08 Masatake YAMATO <jet@gyve.org> + + * progmodes/cc-langs.el: Support new keywords added to + objective-c frontend of gcc. + (c-simple-stmt-kwds): Added @throw. + (c-block-stmt-2-kwds): Added @synchronized. + (c-block-stmt-1-kwds): Added @finally and @try. + 2007-09-07 Carsten Dominik <dominik@science.uva.nl> * textmodes/org.el: Updated to org-mode 5.08. @@ -942,8 +950,8 @@ 2007-08-23 Masatake YAMATO <jet@gyve.org> - * progmodes/cc-fonts.el (gtkdoc-font-lock-doc-comments): - Highlight name of parameters in document body. + * progmodes/cc-fonts.el (gtkdoc-font-lock-doc-comments): Highlight + name of parameters in document body. 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
--- 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