Skip to content

Conversation

perillo
Copy link
Contributor

@perillo perillo commented Aug 24, 2025

I decided to split the changes into two commits.

The first commit removes dead and deprecated code, but without updating all use of deprecated the std.array_list.Managed(u8).

The second commit tries to make the code more consistent. You can see an example of the old code by searching the print function.
Unfortunately, there were more changes I had expected:
1 file changed, 25 insertions(+), 24 deletions(-)

If you don't like it, you can simply ignore the second commit.

- Replace anytype with *Io.Writer when writing to a file, making the
  code more readable.

- Update the escapeHtml function to use Io.Writer.Allocating.fromArrayList.

- Remove the writeEscapedLines function, since line numbers where  removed.

- Remove the escape parameter from the printShell function, since in
  doctest.zig it is always false.

- Update the termColor function to also handle HTML escape characters.
  This allow removing a call to escapeHtml when processing stdout and
  stderr, simplifying the code.

- Update the link for checking the colors used by the compiler.
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.

1 participant