]> git.madduck.net Git - etc/vim.git/blob - tests/data/simple_cases/prefer_rhs_split_reformatted.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

e15e5ddc86d0d3fd445a078c6b35d88b05dbcc59
[etc/vim.git] / tests / data / simple_cases / prefer_rhs_split_reformatted.py
1 # Test cases separate from `prefer_rhs_split.py` that contains unformatted source.
2
3 # Left hand side fits in a single line but will still be exploded by the
4 # magic trailing comma.
5 first_value, (m1, m2,), third_value = xxxxxx_yyyyyy_zzzzzz_wwwwww_uuuuuuu_vvvvvvvvvvv(
6     arg1,
7     arg2,
8 )
9
10 # Make when when the left side of assignment plus the opening paren "... = (" is
11 # exactly line length limit + 1, it won't be split like that.
12 xxxxxxxxx_yyy_zzzzzzzz[xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)] = 1
13
14
15 # output
16
17
18 # Test cases separate from `prefer_rhs_split.py` that contains unformatted source.
19
20 # Left hand side fits in a single line but will still be exploded by the
21 # magic trailing comma.
22 (
23     first_value,
24     (
25         m1,
26         m2,
27     ),
28     third_value,
29 ) = xxxxxx_yyyyyy_zzzzzz_wwwwww_uuuuuuu_vvvvvvvvvvv(
30     arg1,
31     arg2,
32 )
33
34 # Make when when the left side of assignment plus the opening paren "... = (" is
35 # exactly line length limit + 1, it won't be split like that.
36 xxxxxxxxx_yyy_zzzzzzzz[
37     xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
38 ] = 1