mirror of
https://github.com/ruby/ruby.git
synced 2026-08-02 07:40:40 +08:00
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
18 lines
60 B
Plaintext
18 lines
60 B
Plaintext
foo
|
|
and?
|
|
|
|
foo
|
|
or?
|
|
|
|
foo
|
|
and!
|
|
|
|
foo
|
|
or!
|
|
|
|
foo
|
|
andbar
|
|
|
|
foo
|
|
orbar
|