<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/error_highlight/formatter.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/error_highlight] Improve English comments and messages</title>
<updated>2025-10-07T09:07:22+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-10-07T09:01:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c693b0e4771915127c8e097ae2d84dea53c2b339'/>
<id>c693b0e4771915127c8e097ae2d84dea53c2b339</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/5f976265ef
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/5f976265ef
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Use `$stderr` instead of STDERR for Ractor</title>
<updated>2025-01-21T03:32:15+00:00</updated>
<author>
<name>wanabe</name>
<email>s.wanabe@gmail.com</email>
</author>
<published>2025-01-19T01:17:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e5f81e511f566edaf2ca871aa72dbb0260c242bf'/>
<id>e5f81e511f566edaf2ca871aa72dbb0260c242bf</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/a221a4b0eb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/a221a4b0eb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Rename the `ErrorHighlight::DefaultFormatter` setting to `max_snippet_width` for clarity</title>
<updated>2024-10-24T00:29:20+00:00</updated>
<author>
<name>Guilherme Carreiro</name>
<email>karreiro@gmail.com</email>
</author>
<published>2024-10-23T20:55:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0b3d518e81891f0c2cea7c627c9dbe5fd630c92b'/>
<id>0b3d518e81891f0c2cea7c627c9dbe5fd630c92b</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/e13cbd4335
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/e13cbd4335
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Adjust truncation, add opt-out mechanism, rename methods, and prepare error highlighting to render on extremely small screens</title>
<updated>2024-10-23T00:58:50+00:00</updated>
<author>
<name>Guilherme Carreiro</name>
<email>karreiro@gmail.com</email>
</author>
<published>2024-10-17T23:12:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e9ba6c2ea447f1325b6ec58c0f2a31bf81fa924e'/>
<id>e9ba6c2ea447f1325b6ec58c0f2a31bf81fa924e</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/c565340958
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/c565340958
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Handle very long lines with errors in the middle of the line</title>
<updated>2024-10-23T00:58:50+00:00</updated>
<author>
<name>Guilherme Carreiro</name>
<email>karreiro@gmail.com</email>
</author>
<published>2024-10-13T18:40:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e7c9dfb3e913162b7803195f77d1cb9c0cc2b9df'/>
<id>e7c9dfb3e913162b7803195f77d1cb9c0cc2b9df</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/0657bc1afa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/0657bc1afa
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Handle very long lines</title>
<updated>2024-10-23T00:58:50+00:00</updated>
<author>
<name>Guilherme Carreiro</name>
<email>karreiro@gmail.com</email>
</author>
<published>2024-10-10T22:52:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5aa8b9e3b53fbac7667c6d8ee9a3e85992380321'/>
<id>5aa8b9e3b53fbac7667c6d8ee9a3e85992380321</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/383490a4b4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/383490a4b4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Make the formatter mechanism support Ractor</title>
<updated>2021-10-27T02:29:20+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-10-27T02:25:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4c32fcb84f19a3821c25f7a01ac995af3826d83e'/>
<id>4c32fcb84f19a3821c25f7a01ac995af3826d83e</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Support hard tabs</title>
<updated>2021-07-13T07:51:02+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-07-13T07:47:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=23c8bc367c6d700789a4059b831606966efb674c'/>
<id>23c8bc367c6d700789a4059b831606966efb674c</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Experimentally support a custom formatter</title>
<updated>2021-06-30T03:49:18+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-06-30T03:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f428ced69c70473b8405aae9c98828aa6f69b254'/>
<id>f428ced69c70473b8405aae9c98828aa6f69b254</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/f40a1de20e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/f40a1de20e
</pre>
</div>
</content>
</entry>
</feed>
