diff options
| author | Yuan Fu | 2025-03-16 22:38:26 -0700 |
|---|---|---|
| committer | Yuan Fu | 2025-03-16 22:44:05 -0700 |
| commit | eb63d0c04a6747a8a1847b88a50befb4e425e7a3 (patch) | |
| tree | d74bf2899249b53fbe6376f0ec5aa67c781baaf5 | |
| parent | 3d2d95e28431a16897a65543d8b26c791b389ef6 (diff) | |
| download | emacs-eb63d0c04a6747a8a1847b88a50befb4e425e7a3.tar.gz emacs-eb63d0c04a6747a8a1847b88a50befb4e425e7a3.zip | |
Add some keywords to java-ts-mode--keywords (bug#75154)
* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--keywords): Add keywords, remove @interface.
| -rw-r--r-- | lisp/progmodes/java-ts-mode.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index ca169543b5a..c4b2282b574 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el | |||
| @@ -180,17 +180,16 @@ PARENT and BOL are the as in other matchers." | |||
| 180 | "Tree-sitter indent rules.") | 180 | "Tree-sitter indent rules.") |
| 181 | 181 | ||
| 182 | (defvar java-ts-mode--keywords | 182 | (defvar java-ts-mode--keywords |
| 183 | '("abstract" "assert" "break" "case" "catch" | 183 | '("abstract" "assert" "break" |
| 184 | "class" "continue" "default" "do" "else" | 184 | "case" "catch" "class" "continue" "default" "do" |
| 185 | "enum" "exports" "extends" "final" "finally" | 185 | "else" "enum" "exports" "extends" "final" "finally" |
| 186 | "for" "if" "implements" "import" "instanceof" | 186 | "for" "if" "implements" "import" "instanceof" |
| 187 | "interface" "module" "native" "new" "non-sealed" | 187 | "interface" "long" "module" "native" "new" "non-sealed" |
| 188 | "open" "opens" "package" "private" "protected" | 188 | "open" "opens" "package" "permits" "private" "protected" |
| 189 | "provides" "public" "requires" "return" "sealed" | 189 | "provides" "public" "record" "requires" "return" "sealed" |
| 190 | "static" "strictfp" "switch" "synchronized" | 190 | "short" "static" "strictfp" "switch" "synchronized" |
| 191 | "throw" "throws" "to" "transient" "transitive" | 191 | "throw" "throws" "to" "transient" "transitive" "try" |
| 192 | "try" "uses" "volatile" "while" "with" "record" | 192 | "uses" "volatile" "when" "while" "with" "yield") |
| 193 | "@interface") | ||
| 194 | "Java keywords for tree-sitter font-locking.") | 193 | "Java keywords for tree-sitter font-locking.") |
| 195 | 194 | ||
| 196 | (defvar java-ts-mode--operators | 195 | (defvar java-ts-mode--operators |