зеркало из https://github.com/github/ruby.git
[ruby/prism] Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
https://github.com/ruby/prism/commit/8c9502f61b
This commit is contained in:
Родитель
b9b0712556
Коммит
46fe3dc799
|
@ -244,7 +244,7 @@ module Prism
|
|||
return false unless self[0...-1] == other[0...-1]
|
||||
|
||||
if self[3] == Ripper::EXPR_ARG | Ripper::EXPR_LABELED
|
||||
other[3] & Ripper::EXPR_ARG | Ripper::EXPR_LABELED > 0
|
||||
other[3] & Ripper::EXPR_ARG | Ripper::EXPR_LABELED != 0
|
||||
else
|
||||
self[3] == other[3]
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче