mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: add indents for annotation defs (#4828)
- Add indent for `@interface` and `@Annotation(...)` - Add notes for indent queries
This commit is contained in:
parent
79aedc9675
commit
1281601cb4
4 changed files with 27 additions and 9 deletions
3
tests/indent/java/annotation.java
Normal file
3
tests/indent/java/annotation.java
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
abstract public @interface Foo {
|
||||
abstract public String Bar();
|
||||
}
|
||||
8
tests/indent/java/annotation_2.java
Normal file
8
tests/indent/java/annotation_2.java
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@ContextConfiguration(
|
||||
classes = {
|
||||
WireMockConfig.class,
|
||||
}
|
||||
)
|
||||
public class Foo {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue