From f5b368df0ceb1e705cd94e39ef8459dae07e6d52 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 6 Feb 2024 12:59:47 -0500 Subject: [ruby/prism] Better invalid token messages https://github.com/ruby/prism/commit/8c9bed2a4d --- test/prism/format_errors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/prism/format_errors_test.rb b/test/prism/format_errors_test.rb index bc0b26165d..a142e8eee1 100644 --- a/test/prism/format_errors_test.rb +++ b/test/prism/format_errors_test.rb @@ -16,7 +16,7 @@ module Prism assert_equal <<~'ERROR', Debug.format_errors('"%W"\u"', false) > 1 | "%W"\u" | ^ expected a newline or semicolon after the statement - | ^ invalid token + | ^ invalid character `\` | ^ expected a closing delimiter for the string literal ERROR end -- cgit v1.2.3