Skip to content

Commit

Permalink
[ruby/prism] Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
Browse files Browse the repository at this point in the history
  • Loading branch information
nixme authored and matzbot committed Feb 24, 2024
1 parent b9b0712 commit 46fe3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/lex_compat.rb
Expand Up @@ -244,7 +244,7 @@ def ==(other) # :nodoc:
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
Expand Down

0 comments on commit 46fe3dc

Please sign in to comment.