mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
/**
*
*/
New indentation:
/**
*
*/
This commit is contained in:
parent
9f78c9f0ad
commit
3d6f2637a2
3 changed files with 6 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ describe("indent Java:", function()
|
|||
run:new_line("class_with_annotation.java", { on_line = 2, text = "void foo() {}", indent = 2 })
|
||||
run:new_line("enum_with_annotation.java", { on_line = 2, text = "THING;", indent = 2 })
|
||||
run:new_line("interface.java", { on_line = 1, text = "void foo();", indent = 2 })
|
||||
run:new_line("javadoc.java", { on_line = 2, text = "* Sample javadoc line", indent = 2 })
|
||||
run:new_line("javadoc.java", { on_line = 2, text = "* Sample javadoc line", indent = 3 })
|
||||
--TODO: Fix indentation when adding line *before* the ERROR line.
|
||||
run:new_line("issue_2583.java", { on_line = 4, text = "int x = 1;", indent = 4 })
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue