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
|
|
@ -33,5 +33,7 @@ describe("indent Java:", function()
|
|||
run:new_line("method_chaining.java", { on_line = 4, text = '.append("b");', indent = 6 })
|
||||
run:new_line("constructor_with_arguments_on_multiple_lines.java", { on_line = 4, text = "}", indent = 2 })
|
||||
run:new_line("method_with_arguments_on_multiple_lines.java", { on_line = 4, text = "}", indent = 2 })
|
||||
run:new_line("annotation.java", { on_line = 1, text = "abstract public Foo(){}", indent = 2 })
|
||||
run:new_line("annotation_2.java", { on_line = 2, text = "Bar.class", indent = 4 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue