Skip to content

Conversation

@istathar
Copy link
Member

Since we went to all the trouble of having fancy ANSI colour when formatting code and printing to a terminal (something that Technique v0 did very nicely and we finally caught up with in #61), there's no reason we couldn't use the same styles when rendering help text and examples in compiler error messages.

This ended up extending into a fairly broad refactoring, moving the formatting and display of error messages out of the library crate and into the application layer, renaming a number of (internal) traits and their methods.

Considerable revision of the examples in the errors also accompanied this change.

@istathar istathar self-assigned this Aug 10, 2025
@istathar istathar force-pushed the more-colour-errors branch from 7097efb to 2a24c1d Compare August 10, 2025 13:54
@istathar istathar merged commit 4d92454 into technique-lang:main Aug 10, 2025
1 check passed
@istathar istathar deleted the more-colour-errors branch August 14, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant