# HG changeset patch # User Alan Mackenzie # Date 1201639623 0 # Node ID d22f0fe0ef05bf50c427565a306509e0a2ef0f3a # Parent ca2506dd8c8109aff66d978d5471b7baafdcca75 (c-block-stmt-1-kwds, c-block-stmt-2-kwds, c-simple-stmt-kwds): New Objective C keywords: @finally, @try, @catch, @synchronized, @throw. diff -r ca2506dd8c81 -r d22f0fe0ef05 lisp/progmodes/cc-langs.el --- a/lisp/progmodes/cc-langs.el Tue Jan 29 20:45:51 2008 +0000 +++ b/lisp/progmodes/cc-langs.el Tue Jan 29 20:47:03 2008 +0000 @@ -1972,6 +1972,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) @@ -1985,6 +1986,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") @@ -2016,6 +2018,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