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

Fix offset calculation for parsed nodes. #339

Merged
merged 1 commit into from
May 29, 2015
Merged

Fix offset calculation for parsed nodes. #339

merged 1 commit into from
May 29, 2015

Conversation

eventualbuddha
Copy link
Contributor

Closes #335.

This builds on #117 by ensuring that not only are line & column
information corrected to account for control characters inserted by the
preprocessor, but offset information is too. Unfortunately this expands
the hack that overrides the code generated by PEGjs, but it seemed the
cleanest and most performant way to solve the problem.

Closes #335.

This builds on #117 by ensuring that not only are line & column
information corrected to account for control characters inserted by the
preprocessor, but offset information is too. Unfortunately this expands
the hack that overrides the code generated by PEGjs, but it seemed the
cleanest and most performant way to solve the problem.
michaelficarra added a commit that referenced this pull request May 29, 2015
Fix offset calculation for parsed nodes.
@michaelficarra michaelficarra merged commit e1368e9 into michaelficarra:master May 29, 2015
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.

AST node ranges are not always correct
2 participants