coq / vscoq

Visual Studio Code extension for Coq
MIT License
335 stars 68 forks source link

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

Closed gares closed 2 months ago

gares commented 3 months ago

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.