-
Notifications
You must be signed in to change notification settings - Fork 68
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
Labels
enhancement
New feature or request
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: