summaryrefslogtreecommitdiff
path: root/lib/error_highlight/formatter.rb
AgeCommit message (Collapse)Author
2025-01-21[ruby/error_highlight] Use `$stderr` instead of STDERR for Ractorwanabe
https://github.com/ruby/error_highlight/commit/a221a4b0eb
2024-10-24[ruby/error_highlight] Rename the `ErrorHighlight::DefaultFormatter` setting ↵Guilherme Carreiro
to `max_snippet_width` for clarity https://github.com/ruby/error_highlight/commit/e13cbd4335
2024-10-23[ruby/error_highlight] Adjust truncation, add opt-out mechanism, rename ↵Guilherme Carreiro
methods, and prepare error highlighting to render on extremely small screens https://github.com/ruby/error_highlight/commit/c565340958
2024-10-23[ruby/error_highlight] Handle very long lines with errors in the middle of ↵Guilherme Carreiro
the line https://github.com/ruby/error_highlight/commit/0657bc1afa
2024-10-23[ruby/error_highlight] Handle very long linesGuilherme Carreiro
https://github.com/ruby/error_highlight/commit/383490a4b4
2021-10-27[ruby/error_highlight] Make the formatter mechanism support RactorYusuke Endoh
Now the formatter configuration is per Ractor. DefaultFormatter is used if not set. DefaultFormatter#message_for is now a class method to allow sub-Ractors to call the method. https://github.com/ruby/error_highlight/commit/9fbaa8ab7c
2021-07-13[ruby/error_highlight] Support hard tabsYusuke Endoh
Now, the highlight line is created by replacing non-tab characters with spaces, and keeping all hard tabs as-is. This means the highlight line has the completely same indentation as the code snippet line. Fixes #7 https://github.com/ruby/error_highlight/commit/38f20fa542
2021-06-30[ruby/error_highlight] Experimentally support a custom formatterYusuke Endoh
https://github.com/ruby/error_highlight/commit/f40a1de20e