ocaml-gospel / gospel

A tool-agnostic formal specification language for OCaml.
https://ocaml-gospel.github.io/gospel
MIT License
126 stars 16 forks source link

Fix issues with source location tracking (directives and overridden filename) #319

Closed shym closed 1 year ago

shym commented 1 year ago

This PR does not support (yet?) directives inside Gospel code, as I’m not sure about the interactions with OCaml, when line directives would be stored inside an attribute: I guess the Gospel and OCaml lexers would easily get out of sync again.

This seems to solve the problems mentioned in #253.

n-osborne commented 1 year ago

Apparently, it needs formatting too.

shym commented 1 year ago

As CI was finally happy, I merged.