diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-03-16 08:39:58 +0900 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-16 03:46:01 -0400 |
| commit | f5ddd8f92e0222f96b88c6012453eee33e02728a (patch) | |
| tree | bb7804a1622405590d5b89d62122190576dbc9c4 /tests/indent/python | |
| parent | fix: change folding algorithm to fix Python indents (diff) | |
| download | nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.gz nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.bz2 nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.lz nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.xz nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.zst nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.zip | |
fix(python): add missing @indent_end
Diffstat (limited to 'tests/indent/python')
| -rw-r--r-- | tests/indent/python/line_after_indent.py | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/indent/python/line_after_indent.py b/tests/indent/python/line_after_indent.py new file mode 100644 index 000000000..ba24dc03f --- /dev/null +++ b/tests/indent/python/line_after_indent.py @@ -0,0 +1,65 @@ +( + a, + b +) + +foo.bar( + a, b +) + +foo = [ + 1, + 2, + 3 +] + +foo = { + "a": 1, + "b": 2, + "c": 3 +} + +foo = { + 1, + 2, + 3, +} + +foo = ( + 1 + 2 +) + +( + a for a in range(0, 10) +) + +foo = [ + a for a in range(0, 10) +] + +foo = { + a for a in range(0, 10) +} + +foo = { + a: b for a, b in items +} + +foo.bar( + "baz") + +[ + a + b for ( + a, + b + ) + in items +] + +[ + a + b for [ + a, + b + ] + in items +] |
