summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-20 21:43:13 -0500
committergit <svn-admin@ruby-lang.org>2023-11-21 02:43:18 +0000
commit5299b4a362c000f13778a04acfcac5ec0cd33654 (patch)
treea40e088ad235938f6030885a27b93ac5d667961d /test/ruby
parent9fa524dd41be60654e8515f9e406f6f47f0ac7fa (diff)
[ruby/prism] Build the ability to format errors
(https://github.com/ruby/prism/pull/1796) Previously, we only supported error messages that were constant strings. This works for the most part, but there are some times where we want to include some part of the source in the error message to make it better. For example, instead of "Token is reserved" it's better to write "_1 is reserved". To do this, we now support allocating error messages at runtime that are built around format strings. https://github.com/ruby/prism/commit/7e6aa17deb
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions