mirror of
https://github.com/anoma/juvix.git
synced 2024-11-10 15:06:54 +03:00
7840f9fa79
This PR was already merged in https://github.com/anoma/juvix/pull/2173, but main was subsequently forced pushed as part of the 0.4.0 release and these changes were erased by mistake. This PR changes the behaviour of the formatter when run on files that are already formatted. Previously the source of a file that was already formatted was not output by the formatter. After this PR, the formatter always outputs the contents of a formatted file (when used on a single file, and if the --check option is not specified). If the `format: false` pragma is set then the source is echoed verbatim, without highlighting (because it's not possible to get the highlighting without the formatting). This probably helps implementing the formatter in the vscode extension, see https://github.com/anoma/vscode-juvix/issues/98 |
||
---|---|---|
.. | ||
Compile | ||
Dev | ||
Doctor | ||
Eval | ||
Extra | ||
Format | ||
Html | ||
Repl | ||
Typecheck | ||
Base.hs | ||
Clean.hs | ||
Compile.hs | ||
Dev.hs | ||
Doctor.hs | ||
Eval.hs | ||
Format.hs | ||
Html.hs | ||
Init.hs | ||
Repl.hs | ||
Typecheck.hs |