X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1b6de7b0a33b568f71ff86e0e5fef6d4c479c2b7..6ea4eddf936e88c24a6757c0c858812d5ca1a9c6:/src/black/linegen.py diff --git a/src/black/linegen.py b/src/black/linegen.py index 1f132b7..8e8d41e 100644 --- a/src/black/linegen.py +++ b/src/black/linegen.py @@ -220,7 +220,9 @@ class LineGenerator(Visitor[Line]): for child in children: yield from self.visit(child) - if child.type == token.ASYNC: + if child.type == token.ASYNC or child.type == STANDALONE_COMMENT: + # STANDALONE_COMMENT happens when `# fmt: skip` is applied on the async + # line. break internal_stmt = next(children)