Fix indent and font-lock for annotation_type
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Indent inside body. (java-ts-mode--font-lock-settings): Add rule for name in annotation_type_element_declaration.
This commit is contained in:
parent
96601cd90b
commit
8d7ad65665
1 changed files with 5 additions and 1 deletions
|
@ -78,6 +78,7 @@
|
|||
((parent-is "comment") prev-adaptive-prefix 0)
|
||||
((parent-is "text_block") no-indent)
|
||||
((parent-is "class_body") parent-bol java-ts-mode-indent-offset)
|
||||
((parent-is "annotation_type_body") parent-bol java-ts-mode-indent-offset)
|
||||
((parent-is "interface_body") parent-bol java-ts-mode-indent-offset)
|
||||
((parent-is "constructor_body") parent-bol java-ts-mode-indent-offset)
|
||||
((parent-is "enum_body") parent-bol java-ts-mode-indent-offset)
|
||||
|
@ -225,7 +226,10 @@
|
|||
:language 'java
|
||||
:override t
|
||||
:feature 'definition
|
||||
`((method_declaration
|
||||
`((annotation_type_element_declaration
|
||||
name: (identifier) @font-lock-function-name-face)
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @font-lock-function-name-face)
|
||||
|
||||
(variable_declarator
|
||||
|
|
Loading…
Add table
Reference in a new issue