Skip to content

continue and break keyword related errors invalidly include the next token into span #28108

Closed
@nagisa

Description

@nagisa

Once #28105 is fixed, there’s still an issue of both continue and break keyword spans including a token after the keyword into a span.

e.g. for

fn main() { break }

span includes the closing brakcet

<anon>:1 fn main() { break }
                     ^~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions