From 6eb35103d08bbd35d9e7e3cd3987d85451c7e329 Mon Sep 17 00:00:00 2001 From: kiyan Date: Sat, 2 Jul 2022 12:47:05 +0200 Subject: fix(go): indent const declaration https://github.com/nvim-treesitter/nvim-treesitter/issues/3104 --- tests/indent/go_spec.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/indent/go_spec.lua') diff --git a/tests/indent/go_spec.lua b/tests/indent/go_spec.lua index 10e9763c..4d604f3e 100644 --- a/tests/indent/go_spec.lua +++ b/tests/indent/go_spec.lua @@ -15,11 +15,10 @@ describe("indent Go:", function() }) end) - describe("new line:", function() + describe("new lines:", function() run:new_line("issue-2369.go", { on_line = 13, text = "// some comment", indent = 1 }) - end) - - describe("new line after )/}:", function() run:new_line("issue-2369-newline.go", { on_line = 8, text = "// comment", indent = 0 }) + run:new_line("const_declaration.go", { on_line = 3, text = "Constant", indent = 1 }) + run:new_line("const_declaration.go", { on_line = 7, text = "func main() {", indent = 0 }) end) end) -- cgit v1.2.3