Add support for annotation_type_declaration
* lisp/progmodes/java-ts-mode.el (java-ts-mode--keywords): Add new keyword. (java-ts-mode--font-lock-settings): Add font-locking to the type feature.
This commit is contained in:
parent
4a8891a462
commit
09f7a92064
1 changed files with 6 additions and 2 deletions
|
@ -122,7 +122,8 @@
|
|||
"provides" "public" "requires" "return" "sealed"
|
||||
"static" "strictfp" "switch" "synchronized"
|
||||
"throw" "throws" "to" "transient" "transitive"
|
||||
"try" "uses" "volatile" "while" "with" "record")
|
||||
"try" "uses" "volatile" "while" "with" "record"
|
||||
"@interface")
|
||||
"Java keywords for tree-sitter font-locking.")
|
||||
|
||||
(defvar java-ts-mode--operators
|
||||
|
@ -183,7 +184,10 @@
|
|||
:language 'java
|
||||
:override t
|
||||
:feature 'type
|
||||
'((interface_declaration
|
||||
'((annotation_type_declaration
|
||||
name: (identifier) @font-lock-type-face)
|
||||
|
||||
(interface_declaration
|
||||
name: (identifier) @font-lock-type-face)
|
||||
|
||||
(class_declaration
|
||||
|
|
Loading…
Add table
Reference in a new issue