diff options
| author | Evan Phoenix <evan@phx.io> | 2023-03-03 20:26:51 -0800 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-03 23:36:51 -0500 |
| commit | 28f84d69e3b6c26f1f7a2ef3f248a7242f36d620 (patch) | |
| tree | 66438e3b8fa201774c8533f50a70f98cf2c20d32 /tests/indent/go | |
| parent | v(injections): inject regex for some methods in `re` module (diff) | |
| download | nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar.gz nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar.bz2 nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar.lz nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar.xz nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.tar.zst nvim-treesitter-28f84d69e3b6c26f1f7a2ef3f248a7242f36d620.zip | |
fix(go): Indent on type switch case properly
Diffstat (limited to 'tests/indent/go')
| -rw-r--r-- | tests/indent/go/switch.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/go/switch.go b/tests/indent/go/switch.go index 8ccacd564..9b6e74db2 100644 --- a/tests/indent/go/switch.go +++ b/tests/indent/go/switch.go @@ -11,4 +11,10 @@ func test(ch byte) { case 'l': return } + + var i interface{} + switch i.(type) { + case int: + return + } } |
