ruby/test/prism/fixtures/and_or_with_suffix.txt
Earlopain 83c261f30b [ruby/prism] Correctly handle and? and similar on ruby 4.0
It gets confused for syntax introduced in https://bugs.ruby-lang.org/issues/20925
But it actually should be a plain method call.
`!`/`?` are not valid as part of an identifier, methods
however allow them as the last character.

Fixes [Bug #21946]

https://github.com/ruby/prism/commit/5d80bc5e1a
2026-03-06 09:02:23 -08:00

18 lines
60 B
Plaintext

foo
and?
foo
or?
foo
and!
foo
or!
foo
andbar
foo
orbar