summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGopal Patel <nixme@stillhope.com>2023-12-20 20:44:40 -0800
committergit <svn-admin@ruby-lang.org>2024-02-24 03:39:20 +0000
commit46fe3dc799e937fcd369f6c22a038c9fc35a7328 (patch)
tree5fbe29bdd5747b2b0564322d973a8857ee6312b8 /lib
parentb9b0712556980a3af91c976c3fee8ba0e21c39a0 (diff)
[ruby/prism] Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
https://github.com/ruby/prism/commit/8c9502f61b
Diffstat (limited to 'lib')
-rw-r--r--lib/prism/lex_compat.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/lex_compat.rb b/lib/prism/lex_compat.rb
index 3a0431841e..70cb065201 100644
--- a/lib/prism/lex_compat.rb
+++ b/lib/prism/lex_compat.rb
@@ -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