Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record line numbers on tokens #219

Open
djmattyg007 opened this issue May 23, 2022 · 1 comment
Open

Record line numbers on tokens #219

djmattyg007 opened this issue May 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@djmattyg007
Copy link

Context

I'm writing a tool to parse markdown files and verify that links are valid. To be able to provide the most valuable, accurate feedback, I need to be able to display line numbers to the user, so that they know exactly where in a file the broken link is.

Right now this isn't possible, because line numbers aren't recorded on token objects.

Proposal

Store line numbers on tokens, and provide a convenient wrapper for accessing the line number of a node when using SyntaxTreeNode.

Tasks and updates

No response

@djmattyg007 djmattyg007 added the enhancement New feature or request label May 23, 2022
@welcome
Copy link

welcome bot commented May 23, 2022

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant