Skip to content

[FEAT] Source mapping info #273

Description

@midrare

I want to request a feature: source mapping info.

For each node, expose .start_pos and .end_pos, which correspond to the indices in the source text where the text span began and ended. Ideally, with separate spans for syntax characters and text content. i.e. for the source text [Google](https://google.com), produce separate source info spans for [, Google, ](, https://google.com, )

Use case: for a syntax highlighter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions