From: Yuan Fu Date: Mon, 17 Mar 2025 05:38:26 +0000 (-0700) Subject: Add some keywords to java-ts-mode--keywords (bug#75154) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6310c52f229d39cf14a080aafb0005df6904caa7;p=emacs.git Add some keywords to java-ts-mode--keywords (bug#75154) * lisp/progmodes/java-ts-mode.el: (java-ts-mode--keywords): Add keywords, remove @interface. (cherry picked from commit eb63d0c04a6747a8a1847b88a50befb4e425e7a3) --- diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index 80a6130ab2a..a36ea4f62ab 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -188,17 +188,16 @@ PARENT and BOL are the as in other matchers." "Tree-sitter indent rules.") (defvar java-ts-mode--keywords - '("abstract" "assert" "break" "case" "catch" - "class" "continue" "default" "do" "else" - "enum" "exports" "extends" "final" "finally" + '("abstract" "assert" "break" + "case" "catch" "class" "continue" "default" "do" + "else" "enum" "exports" "extends" "final" "finally" "for" "if" "implements" "import" "instanceof" - "interface" "module" "native" "new" "non-sealed" - "open" "opens" "package" "private" "protected" - "provides" "public" "requires" "return" "sealed" - "static" "strictfp" "switch" "synchronized" - "throw" "throws" "to" "transient" "transitive" - "try" "uses" "volatile" "while" "with" "record" - "@interface") + "interface" "long" "module" "native" "new" "non-sealed" + "open" "opens" "package" "permits" "private" "protected" + "provides" "public" "record" "requires" "return" "sealed" + "short" "static" "strictfp" "switch" "synchronized" + "throw" "throws" "to" "transient" "transitive" "try" + "uses" "volatile" "when" "while" "with" "yield") "Java keywords for tree-sitter font-locking.") (defvar java-ts-mode--operators