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

WiP: comrak sourcepos (#80) #116

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

WiP: comrak sourcepos (#80) #116

wants to merge 1 commit into from

Conversation

SamWilsn
Copy link
Contributor

This pull request adds support for comrak's source position information, available in versions >= 0.18. There seem to be some bugs in that library, so this is a draft until that's fixed.

@@ -1002,6 +1002,12 @@ fn process<'a>(
} else {
data.sourcepos.start.line += preamble_lines;
}

if data.sourcepos.end.line == 0 {
data.sourcepos.end.line = data.sourcepos.start.line;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: if end.column is non-zero and less than start.column, this line causes problems (and I've seen it happen.)

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

Successfully merging this pull request may close these issues.

1 participant