Skip to content

Commit

Permalink
Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
Browse files Browse the repository at this point in the history
  • Loading branch information
nixme authored and kddnewton committed Feb 24, 2024
1 parent eabed9f commit 8c9502f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/lex_compat.rb
Original file line number Diff line number Diff line change
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 8c9502f

Please sign in to comment.