Skip to content

Subpar span on multiline format string with unclosed brace #53837

Closed
@estebank

Description

@estebank

Given a format string with an unclosed opening brace, the span points to the next element where a closing brace is expected. If this happens in a multiline format string, the span might be pointing to the line after the problem, with no secondary span referencing the opening brace. Either modify the error to be about "unclosed opening brace" pointing at the opening brace or add a secondary span pointing at it.

Introduced in #52649. CC #53836.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions