aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go_spec.lua
diff options
context:
space:
mode:
authorAkin Sowemimo <akin.sowemimo@gmail.com>2022-04-18 12:19:31 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-04-18 14:11:02 +0200
commitbca65c068b92f19174dbba15d538315e8c89a5d6 (patch)
tree350fa0087f522ead3d8799fecb8df7694a2ca015 /tests/indent/go_spec.lua
parentfix(go): reduce indent after },) (diff)
downloadnvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar.gz
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar.bz2
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar.lz
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar.xz
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.tar.zst
nvim-treesitter-bca65c068b92f19174dbba15d538315e8c89a5d6.zip
test(go): add cases for newlines de-indentation
test(go): combine new indent test cases test(go): add incorrect indent after var closing ) this case does not work correctly already so add that in since this PR does not address that case test(go): set current lines in indent test test(go): simplify test case
Diffstat (limited to 'tests/indent/go_spec.lua')
-rw-r--r--tests/indent/go_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/go_spec.lua b/tests/indent/go_spec.lua
index 25c193372..10e9763c9 100644
--- a/tests/indent/go_spec.lua
+++ b/tests/indent/go_spec.lua
@@ -18,4 +18,8 @@ describe("indent Go:", function()
describe("new line:", 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 })
+ end)
end)