From 6310c52f229d39cf14a080aafb0005df6904caa7 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 16 Mar 2025 22:38:26 -0700 Subject: [PATCH] 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) --- lisp/progmodes/java-ts-mode.el | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 -- 2.39.5