From c1a141f02eb431477664f41c21139312ff486505 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arsen=20Arsenovi=EF=BF=BD?= Date: Sun, 22 Dec 2024 19:33:29 +0000 Subject: [PATCH] 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) --- lisp/progmodes/cc-langs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5