]> git.eshelyaron.com Git - emacs.git/commitdiff
Support new keywords added to objective-c frontend of gcc.
authorMasatake YAMATO <jet@gyve.org>
Sat, 8 Sep 2007 04:31:08 +0000 (04:31 +0000)
committerMasatake YAMATO <jet@gyve.org>
Sat, 8 Sep 2007 04:31:08 +0000 (04:31 +0000)
lisp/ChangeLog
lisp/progmodes/cc-langs.el

index 8b6b086d1071e13acbf756548ff88200d06718f8..1c9c2020c01d1fe04e1006a56290ac5425b83225 100644 (file)
@@ -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.
 
 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>
 
index d0ff9c523ade6d91a284ab14783f37bc78eeb187..a4dfe41ca7811546533dc70b280e08ad06b63f91 100644 (file)
@@ -1970,6 +1970,7 @@ identifiers that follows the type in a normal declaration."
   "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 @@ identifiers that follows the type in a normal declaration."
   "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 @@ identifiers that follows the type in a normal declaration."
 (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