From: Arsen Arsenovi� Date: Sun, 22 Dec 2024 19:33:29 +0000 (+0000) Subject: Java Mode: introduce the keyword `assert'. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1a141f02eb431477664f41c21139312ff486505;p=emacs.git Java Mode: introduce the keyword `assert'. * lisp/progmodes/cc-langs.el (c-simple-stmt-kwds): Put `assert' into the java value. (cherry picked from commit 39380e1bd3bfc26e355445590e243fcfa940fc9f) --- diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index a256371f850..8d3d0ed3a3b 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -3251,7 +3251,7 @@ Such a keyword is a member of `c-paren-clause-kwds." c++ '("break" "continue" "goto" "return" "co_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") + java '("assert" "break" "continue" "goto" "return" "throw") idl nil pike '("break" "continue" "return") awk '(;; Not sure about "delete", "exit", "getline", etc. ; ACM 2002/5/30