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

[parser] use the loc of the prev sentence to feed the parser #824

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

gares
Copy link
Member

@gares gares commented Jul 10, 2024

In this way the line number in the loc is not reset to 0. This has no use internally, since the document holds the text and computes line number correctly, but Coq code and plugins may want to display a loc (with a correct line number).

Note that the char-number is correct, since it comes from the stream, apparently.

This makes errors reported by Coq-Elpi more precise.

gares added a commit to LPCIC/coq-elpi that referenced this pull request Jul 10, 2024
gares added 2 commits July 12, 2024 11:02
In this way the line number in the loc is not reset to 0.
This has no use internally, since the document holds the text and
computes line number correctly, but Coq code and plugins may want
to display a loc (with a correct line number)
@gares gares force-pushed the fix-parsing-loc branch from 2c5ca6a to aea118f Compare July 12, 2024 09:02
@rtetley rtetley merged commit e6e6360 into main Jul 23, 2024
23 checks passed
@rtetley rtetley deleted the fix-parsing-loc branch August 8, 2024 13:55
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.

2 participants