Repository navigation
fix: allow formatting dialects for parser-generator inputs - #17193
anmonteiro wants to merge 4 commits into
Conversation
10628da to
b6d5762
Compare
Cover ocaml#17030 for Menhir and ocamlyacc; complements ocaml#17029. Fixed by ocaml#17193. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Extend the reproduction from ocaml#17029 to exercise formatting. Refs ocaml#17030. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Recognize generated modules that share their original source with a dialect input. Fixes ocaml#17030, introduced by ocaml#16414; uses the reproduction from ocaml#17029. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
b6d5762 to
4bad995
Compare
|
The part I am unsure about is if this is something we even want to support. Should we consider The question I usually ask in these kinds of situations is: "Can we give users another reasonable way to do what they want?". In this case, writing formatting rules by hand is one such way, but quite unwieldy still. |
I agree with this -- I was interested in looking at what a fix would look like, and this PR should rather be a draft (converted now). The other way that I've been looking at this one is that it's technically a breaking change, since it breaks the build for a project relying on it. That was the original impetus for seeing what the diff looked like -- it seems like enough of a small fix that has the benefit of restoring previously working behavior -- but let me know if you disagree. |
Reproduce #17030 for Menhir and ocamlyacc formatting dialects. Complements #17029; fixed by #17193. 01a20619-183b-76f3-b8a7-18c1b28eb1c0 Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Restore builds using formatting dialects for parser-generator inputs.
Fixes #17030 (regression from #16414). Extends #17029 and depends on #17194 (merge first).
01a20619-183b-76f3-b8a7-18c1b28eb1c0