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

Fix the handling of `# fmt: skip` when it's at a colon line (#3148)
authorYilei "Dolee" Yang <yileiyang@google.com>
Tue, 19 Jul 2022 21:26:11 +0000 (14:26 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Jul 2022 21:26:11 +0000 (17:26 -0400)
commit6ea4eddf936e88c24a6757c0c858812d5ca1a9c6
tree81a68b00b8709bf577ae8d942b2972aa03db314c
parent1b6de7b0a33b568f71ff86e0e5fef6d4c479c2b7
Fix the handling of `# fmt: skip` when it's at a colon line (#3148)

When the Leaf node with `# fmt: skip` is a NEWLINE inside a `suite`
Node, the nodes to ignore should be from the siblings of the parent
`suite` Node.

There is a also a special case for the ASYNC token, where it expands
to the grandparent Node where the ASYNC token is.

This fixes GH-2646, GH-3126, GH-2680, GH-2421, GH-2339, and GH-2138.
CHANGES.md
src/black/comments.py
src/black/linegen.py
tests/data/simple_cases/fmtskip8.py [new file with mode: 0644]