From: rax <133822160+kotnen@users.noreply.github.com> Date: Tue, 11 Jul 2023 19:16:43 +0000 (-0500) Subject: Document shebang comment behaviour (#3787) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/6123b4ac2696116090fee3da77e9be66417980dd?ds=sidebyside;hp=37895f8e50486a0fa581f8fb039e536dc6d0d0e4 Document shebang comment behaviour (#3787) --- diff --git a/docs/the_black_code_style/current_style.md b/docs/the_black_code_style/current_style.md index 0fb59fe..e1a8078 100644 --- a/docs/the_black_code_style/current_style.md +++ b/docs/the_black_code_style/current_style.md @@ -254,11 +254,12 @@ required due to an inner function starting immediately after. _Black_ does not format comment contents, but it enforces two spaces between code and a comment on the same line, and a space before the comment text begins. Some types of -comments that require specific spacing rules are respected: doc comments (`#: comment`), -section comments with long runs of hashes, and Spyder cells. Non-breaking spaces after -hashes are also preserved. Comments may sometimes be moved because of formatting -changes, which can break tools that assign special meaning to them. See -[AST before and after formatting](#ast-before-and-after-formatting) for more discussion. +comments that require specific spacing rules are respected: shebangs (`#! comment`), doc +comments (`#: comment`), section comments with long runs of hashes, and Spyder cells. +Non-breaking spaces after hashes are also preserved. Comments may sometimes be moved +because of formatting changes, which can break tools that assign special meaning to +them. See [AST before and after formatting](#ast-before-and-after-formatting) for more +discussion. ### Trailing commas