]> git.eshelyaron.com Git - emacs.git/commitdiff
Java Mode: introduce the keyword `assert'.
authorArsen Arsenovi� <arsen@aarsen.me>
Sun, 22 Dec 2024 19:33:29 +0000 (19:33 +0000)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:20:30 +0000 (16:20 +0100)
* 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

index a256371f85090103cf6fd5e503418dab8f93a27b..8d3d0ed3a3b586ce8d78e6c308e3406996a6d574 100644 (file)
@@ -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