]> git.madduck.net Git - etc/vim.git/commit

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:

Correctly handle trailing commas that are inside a line's leading non-nested parens...
authorYilei "Dolee" Yang <yileiyang@google.com>
Wed, 9 Nov 2022 23:08:51 +0000 (15:08 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2022 23:08:51 +0000 (15:08 -0800)
commit8091b2503d12dd0110e0f1a9ed1e6b830aa668ed
tree2fbd1d5e51cb03a24f0ade6226ccfaeb6ce9369a
parentffaaf4838228c922b586a87f717ed402031fcc0a
Correctly handle trailing commas that are inside a line's leading non-nested parens (#3370)

- Fixes #1671
- Fixes #3229
CHANGES.md
src/black/brackets.py
src/black/linegen.py
src/black/lines.py
src/black/mode.py
tests/data/preview/skip_magic_trailing_comma.py
tests/data/preview/trailing_commas_in_leading_parts.py [new file with mode: 0644]
tests/data/simple_cases/function_trailing_comma.py