X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/da3c2f358208dc9838c63d57b66c89e164eb241a..80f9b14a30916cfda24177a93176c498337fb6ef:/black.py?ds=sidebyside diff --git a/black.py b/black.py index 75fbdca..d48fddb 100644 --- a/black.py +++ b/black.py @@ -815,6 +815,9 @@ def whitespace(leaf: Leaf) -> str: if prevp.parent and prevp.parent.type == syms.subscript: return NO + elif prevp.parent and prevp.parent.type == syms.factor: + return NO + elif prev.type in OPENING_BRACKETS: return NO