]> git.eshelyaron.com Git - emacs.git/commitdiff
Add some keywords to java-ts-mode--keywords (bug#75154)
authorYuan Fu <casouri@gmail.com>
Mon, 17 Mar 2025 05:38:26 +0000 (22:38 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Mar 2025 11:06:09 +0000 (12:06 +0100)
* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--keywords): Add keywords, remove @interface.

(cherry picked from commit eb63d0c04a6747a8a1847b88a50befb4e425e7a3)

lisp/progmodes/java-ts-mode.el

index 80a6130ab2ac1ff5c903ded8dced6e48e7341b3c..a36ea4f62ab6f5e8b1fd5ded9a4ee0fdf1954771 100644 (file)
@@ -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