diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-22 14:50:51 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:54:55 +0100 |
| commit | 059fbc487c62a5e109143254b720a5dc33201a34 (patch) | |
| tree | 24fac44f1ef8996b99b9323bcb0178ccca899aea /tests/indent | |
| parent | indents(cpp): indent at field_initializer_list (diff) | |
| download | nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.gz nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.bz2 nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.lz nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.xz nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.zst nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.zip | |
indents: allow aligned_indent for unfinished calls in C and Python
Diffstat (limited to 'tests/indent')
| -rw-r--r-- | tests/indent/c/aligned_indent.c | 10 | ||||
| -rw-r--r-- | tests/indent/c/func.c | 2 | ||||
| -rw-r--r-- | tests/indent/c/initializer_list.c | 3 | ||||
| -rw-r--r-- | tests/indent/python/aligned_indent.py | 3 |
4 files changed, 17 insertions, 1 deletions
diff --git a/tests/indent/c/aligned_indent.c b/tests/indent/c/aligned_indent.c new file mode 100644 index 000000000..75555b971 --- /dev/null +++ b/tests/indent/c/aligned_indent.c @@ -0,0 +1,10 @@ +void foo(int a, + int b, + int c); + +void foo(int a, + int b + + + + diff --git a/tests/indent/c/func.c b/tests/indent/c/func.c index c188acc01..0c1ede8e0 100644 --- a/tests/indent/c/func.c +++ b/tests/indent/c/func.c @@ -21,7 +21,7 @@ int f4( } int f5(int x, - int y) + int y) { return 1; } diff --git a/tests/indent/c/initializer_list.c b/tests/indent/c/initializer_list.c new file mode 100644 index 000000000..9bf28d946 --- /dev/null +++ b/tests/indent/c/initializer_list.c @@ -0,0 +1,3 @@ +int a[] = { + 1, 2, 3, + 4}; diff --git a/tests/indent/python/aligned_indent.py b/tests/indent/python/aligned_indent.py index 2a4b827f4..b92356740 100644 --- a/tests/indent/python/aligned_indent.py +++ b/tests/indent/python/aligned_indent.py @@ -9,3 +9,6 @@ aligned_indent(1, aligned_indent(1, 2 ) + +foodsadsa(sdada, + 2 |
