]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-block-stmt-1-kwds, c-block-stmt-2-kwds, c-simple-stmt-kwds): New
authorAlan Mackenzie <acm@muc.de>
Tue, 29 Jan 2008 20:47:03 +0000 (20:47 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 29 Jan 2008 20:47:03 +0000 (20:47 +0000)
Objective C keywords: @finally, @try, @catch, @synchronized, @throw.

lisp/progmodes/cc-langs.el

index 4c82fb522c078564c5c3359619899e31f6928e30..54725c0fd886c5a7785d94d9c5a2725c5414d24c 100644 (file)
@@ -1972,6 +1972,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)
 
@@ -1985,6 +1986,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")
@@ -2016,6 +2018,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