summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-langs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2008-01-29 20:47:03 +0000
committerAlan Mackenzie <acm@muc.de>2008-01-29 20:47:03 +0000
commit9555a4cfeb2e5ebf3c0283d7b79586ef22e62c9d (patch)
treec4cd122428cfd14cb4507a9228ce598fa8065358 /lisp/progmodes/cc-langs.el
parent6c7480fc75820b56a92e729eea60813ab1a5e25d (diff)
downloademacs-9555a4cfeb2e5ebf3c0283d7b79586ef22e62c9d.tar.gz
(c-block-stmt-1-kwds, c-block-stmt-2-kwds, c-simple-stmt-kwds): New
Objective C keywords: @finally, @try, @catch, @synchronized, @throw.
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r--lisp/progmodes/cc-langs.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 4c82fb522c0..54725c0fd88 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -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