From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Thu, 14 Jul 2022 00:02:51 +0000 (-0400) Subject: Copy over comments when hugging power ops (#2874) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/18c17bea757dc88d0b6d2be6e99a4ebcc18e288c?ds=inline;hp=18c17bea757dc88d0b6d2be6e99a4ebcc18e288c 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 ---