Skip to content

wrap_comments can break up code snippets #5250

Open
@imlazyeye

Description

@imlazyeye

Very related to #5244 -- not sure if this should be merged with that. Either way, a similar behavior occurs with code snippets in comments. Given the following...

/// This is a comment with some code `foo bar`.

If the comment reaches the maximum width inside the code snippet, it'll break it up like so:

/// This is a comment with some code `foo
/// bar`

I think it would be more expected for it to treat the snippet as a single lexeme, and insert the line break prior to the start (foo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-commentsa-markdownmarkdown formatting in doc commentsonly-with-optionrequires a non-default option value to reproducep-low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions