X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f1f12284e0e9424890b2616b198e69ed7e147116..91de9ea6e3a83fe29c165814271a9bffdd5e6097:/black.py diff --git a/black.py b/black.py index 46c64a3..8d55164 100644 --- a/black.py +++ b/black.py @@ -2606,6 +2606,9 @@ def generate_trailers_to_omit(line: Line, line_length: int) -> Iterator[Set[Leaf if length > line_length: break + if leaf.type == STANDALONE_COMMENT: + break + optional_brackets.discard(id(leaf)) if opening_bracket: if leaf is opening_bracket: