Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support paragraph breaks in python block comments. #5148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 29, 2024

  1. 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.
    sjjf committed May 29, 2024
    Configuration menu
    Copy the full SHA
    3ce4172 View commit details
    Browse the repository at this point in the history