From 087190fcd21973eb34b600fa82e6567189f4bbd7 Mon Sep 17 00:00:00 2001 From: ydah Date: Mon, 7 Jul 2025 19:06:26 +0900 Subject: [ruby/prism] Improve error handling for missing parentheses after 'not' in command calls https://github.com/ruby/prism/commit/d9151b8a82 --- test/prism/errors/command_calls_31.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/prism/errors') diff --git a/test/prism/errors/command_calls_31.txt b/test/prism/errors/command_calls_31.txt index 72d5fc588f..e662b25444 100644 --- a/test/prism/errors/command_calls_31.txt +++ b/test/prism/errors/command_calls_31.txt @@ -7,6 +7,11 @@ true || not true ^~~~ unexpected 'true', expecting end-of-input true && not (true) - ^ expected a `(` after `not` + ^ expected a `(` immediately after `not` ^ unexpected '(', expecting end-of-input +true && not +true +^~~~ expected a `(` after `not` +^~~~ unexpected 'true', expecting end-of-input + -- cgit v1.2.3