summaryrefslogtreecommitdiff
path: root/test/regression/5147-python-block-comment-paragraphs/exit-block/cmd
diff options
context:
space:
mode:
authorSimon Fowler <simon.fowler@anu.edu.au>2024-04-18 22:55:18 +1000
committerSimon Fowler <simon.fowler@anu.edu.au>2024-06-07 20:33:17 +1000
commit9c9aa2cf95a1503cddcba69aed8b5f1a234927d6 (patch)
treeaf0f1ada7f00de968304e178fe618838d6053730 /test/regression/5147-python-block-comment-paragraphs/exit-block/cmd
parentc93cb5c4d8f1c2aec21f8bdeba59dfb8f153499c (diff)
Support paragraph breaks in python block comments.
The current python filetype module treats a single empty comment line (typically created by hitting enter twice while in a block comment) as the end of a block comment, deleting the empty comment and ending comment prefix copying. This runs contrary to PEP8, which explicitly allows for paragraphs in block comments, with an empty comment as the paragraph separator. This change implements support for using a single empty comment as a paragraph separator, with two consecutive empty comments being treated as the end of the block comment; both empty comment lines are deleted and comment prefix copying is ended.
Diffstat (limited to 'test/regression/5147-python-block-comment-paragraphs/exit-block/cmd')
-rw-r--r--test/regression/5147-python-block-comment-paragraphs/exit-block/cmd1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/regression/5147-python-block-comment-paragraphs/exit-block/cmd b/test/regression/5147-python-block-comment-paragraphs/exit-block/cmd
new file mode 100644
index 00000000..60ee9918
--- /dev/null
+++ b/test/regression/5147-python-block-comment-paragraphs/exit-block/cmd
@@ -0,0 +1 @@
+gjA<ret>