diff options
| author | ydah <t.yudai92@gmail.com> | 2025-07-07 19:06:26 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-07-16 15:48:09 +0000 |
| commit | 4eb0a6cd4daa2ea53b53aa14d463040912c0838c (patch) | |
| tree | 6eeb661959afe569ea0d4f25c9d44a99b2e19e45 /test/prism/errors | |
| parent | 4cf85fe2140d0522f924ab57c850b2f03b967390 (diff) | |
[ruby/prism] Improve error handling for missing parentheses after 'not' in command calls
https://github.com/ruby/prism/commit/d9151b8a82
Diffstat (limited to 'test/prism/errors')
| -rw-r--r-- | test/prism/errors/command_calls_31.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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 + |
