diff options
| author | Jędrzej Boczar <yendreij@gmail.com> | 2021-03-13 22:46:45 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-04-23 21:21:38 +0200 |
| commit | 67f2c7149c0de39248f1bdeba1a4303b156c3199 (patch) | |
| tree | 1365bbaddf0570e2ab3d051bd3b4e7e2c876e2a6 /lua/tests/indent/python/comprehensions.py | |
| parent | replace @class with @type (diff) | |
| download | nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.gz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.bz2 nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.lz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.xz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.zst nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.zip | |
Initial sketch of automated indent tests
Diffstat (limited to 'lua/tests/indent/python/comprehensions.py')
| -rw-r--r-- | lua/tests/indent/python/comprehensions.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/tests/indent/python/comprehensions.py b/lua/tests/indent/python/comprehensions.py new file mode 100644 index 000000000..53c3961e1 --- /dev/null +++ b/lua/tests/indent/python/comprehensions.py @@ -0,0 +1,25 @@ +# list +a = [ + x + 1 for x in range(3) +] + +# dict +b = { + x: x + 1 for x in range(3) +} + +# generator +c = ( + x * x for x in range(3) +) + +# set +d = { + x + x for x in range(3) +} + +# other styles +e = [ + x + 1 for x + in range(3) +] |
