diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-10 23:01:57 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-15 13:34:16 -0700 |
| commit | d1ce3db8ea608bd5b10171ce23b2867eddad427a (patch) | |
| tree | b4f0fe0779a37b708d202ea8260b0be44b6cd083 /tests | |
| parent | indens(go): fix issue 3288 (diff) | |
| download | nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar.gz nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar.bz2 nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar.lz nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar.xz nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.tar.zst nvim-treesitter-d1ce3db8ea608bd5b10171ce23b2867eddad427a.zip | |
indents(go): no indent at all composite_literal, indent at struct_type
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/go/issue-3288.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/indent/go/issue-3288.go b/tests/indent/go/issue-3288.go index a59208184..330dd67c5 100644 --- a/tests/indent/go/issue-3288.go +++ b/tests/indent/go/issue-3288.go @@ -7,8 +7,16 @@ func correct(word string) { select { } // <--- +} - arr := []struct { +func test() { + cases := []struct { + first, second string + } { + {"Hello", "World"}, + } - } // <--- + for range cases { + println("random stuff") + } } |
