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 the reported line/column for syntax errors. #353

Merged
merged 1 commit into from
Sep 23, 2015
Merged

Fix the reported line/column for syntax errors. #353

merged 1 commit into from
Sep 23, 2015

Conversation

eventualbuddha
Copy link
Contributor

As reported at decaffeinate/decaffeinate#54, CoffeeScriptRedux syntax errors always point to line 1 column 1. This is very annoying when trying to figure out what part of the file it actually can’t parse. This updates the peg override to match the new signature for peg$computePosDetails which now takes a pos argument.

As reported at decaffeinate/decaffeinate#54, CoffeeScriptRedux syntax
errors always point to line 1 column 1. This is very annoying when
trying to figure out what part of the file it actually can’t parse.
This updates the peg override to match the new signature for
`peg$computePosDetails` which now takes a `pos` argument.
@michaelficarra
Copy link
Owner

Yeah, unfortunately this hack is the most fragile part of the compiler (see the comment above). Thanks for fixing it. I wish we had a better way.

michaelficarra added a commit that referenced this pull request Sep 23, 2015
Fix the reported line/column for syntax errors.
@michaelficarra michaelficarra merged commit 4f71af2 into michaelficarra:master Sep 23, 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.

None yet

2 participants