aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/java_spec.lua
diff options
context:
space:
mode:
authorDaniel Woznicki <danwoz@nettoolkit.com>2022-02-28 12:09:10 -0800
committerStephan Seitz <stephan.seitz@fau.de>2022-03-01 21:12:14 +0100
commitbf2493f5e1246a560ab2f567905baf3dab131be6 (patch)
tree6f06c3fd91ee679ea6726dfe26ebdeb2c3ab86af /tests/indent/java_spec.lua
parentUpdate README (diff)
downloadnvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar.gz
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar.bz2
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar.lz
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar.xz
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.tar.zst
nvim-treesitter-bf2493f5e1246a560ab2f567905baf3dab131be6.zip
Added fix for Java interfaces not being indented properly
Diffstat (limited to 'tests/indent/java_spec.lua')
-rw-r--r--tests/indent/java_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/indent/java_spec.lua b/tests/indent/java_spec.lua
index 8506992fb..ff14f6b2b 100644
--- a/tests/indent/java_spec.lua
+++ b/tests/indent/java_spec.lua
@@ -21,5 +21,6 @@ describe("indent Java:", function()
run:new_line("enum.java", { on_line = 2, text = "THING_B,", indent = 2 })
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 })
end)
end)