summaryrefslogtreecommitdiff
path: root/lib/prism/lex_compat.rb
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-02-05 15:41:46 -0500
committergit <[email protected]>2024-02-07 16:54:34 +0000
commitaad3c36bdfe68c429cf612542a7eb3c94c17c483 ()
tree70cff5280c6d97d131501a9e8dc774c33ac3e31c /lib/prism/lex_compat.rb
parentaed052ce9d9eeeccecb12c444aa7327d1e078a51 (diff)
[ruby/prism] Support for Ruby 2.7
https://.com/ruby/prism/commit/1a15b70a8e
-rw-r--r--lib/prism/lex_compat.rb17
1 files changed, 16 insertions, 1 deletions
@@ -860,7 +860,7 @@ module Prism
previous = []
results = []
- Ripper.lex(source, raise_errors: true).each do |token|
case token[1]
when :on_sp
# skip
@@ -886,6 +886,21 @@ module Prism
results
end
end
private_constant :LexRipper