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

Stability fixup: interaction between newlines and comments (#1975)
authorJames Addison <jay@jp-hosting.net>
Thu, 11 Feb 2021 20:11:42 +0000 (20:11 +0000)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 20:11:42 +0000 (12:11 -0800)
commitb8c1020b526b488a1a216d9a4d58fc8616b61a99
treef505b3ea278e1ea2eab95f0f3df06ee978859f15
parent2d0c14989dca41676fc83fb36f2d652cf93fad58
Stability fixup: interaction between newlines and comments (#1975)

* Add test case to illustrate the issue

* Accept carriage returns as valid separators while enumerating comments

Without this acceptance, escaped multi-line statments that use carriage returns will not be counted into the 'ignored_lines' variable since the emitted line values will end with a CR and not an escape character.  That leads to comments associated with the line being incorrectly labeled with the STANDALONE_COMMENT type, affecting comment placement and line space management.

* Remove comment linking to ephemeral build log
src/black/__init__.py
tests/test_black.py