From 1281601cb40b71a47c5b30866bd4968fd0d20fb3 Mon Sep 17 00:00:00 2001 From: Pham Huy Hoang Date: Sun, 4 Jun 2023 13:28:41 +0900 Subject: feat: add indents for annotation defs (#4828) - Add indent for `@interface` and `@Annotation(...)` - Add notes for indent queries --- tests/indent/java_spec.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/indent/java_spec.lua') diff --git a/tests/indent/java_spec.lua b/tests/indent/java_spec.lua index 33003fd40..1d10046bb 100644 --- a/tests/indent/java_spec.lua +++ b/tests/indent/java_spec.lua @@ -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) -- cgit v1.2.3-70-g09d2