X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c891c65b6b2de7c257244cc409276b485130c275..91de9ea6e3a83fe29c165814271a9bffdd5e6097:/black.py?ds=inline 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: