]> 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:

Copy over comments when hugging power ops (#2874)
authorRichard Si <63936253+ichard26@users.noreply.github.com>
Thu, 14 Jul 2022 00:02:51 +0000 (20:02 -0400)
committerGitHub <noreply@github.com>
Thu, 14 Jul 2022 00:02:51 +0000 (17:02 -0700)
commit18c17bea757dc88d0b6d2be6e99a4ebcc18e288c
treee016a66f7ded193cbb2e06162c0ed44c6bfb5223
parent05b63c4bccbfb292a92d3ec962ce9b8fa4ebcfd5
Copy over comments when hugging power ops  (#2874)

Otherwise they'd be deleted which was a regression in 22.1.0 (oops! my
bad!). Also type comments are now tracked in the AST safety check on all
compatible platforms to error out if this happens again.

Overall the line rewriting code has been rewritten to do "the right
thing (tm)", I hope this fixes other potential bugs in the code (fwiw I
got to drop the bugfix in blib2to3.pytree.Leaf.clone since now bracket
metadata is properly copied over).

Fixes #2873
CHANGES.md
src/black/parsing.py
src/black/trans.py
src/blib2to3/pytree.py
tests/data/simple_cases/power_op_spacing.py