Skip to content

Decide if TokenMissingError and MismatchedDelimiterError should have end_line/column or begin_line/column #13187

@josevalim

Description

@josevalim

And whatever we choose should be passed down to the diagnostics and we need to document these fields.

The big question is: should the line/column point by default to where the delimiter starts or where it is missing/mismatched?

Perhaps this doesn't matter for IDEs. IDEs will receive both line+column PLUS the span, so they can always highlight the whole bit. If this is the case, then I would have line/column be the starting position and include end_line/end_column, so it is closer to the diagnostic.

/cc @lukaszsamson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions