mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix Jruby...
This commit is contained in:
parent
00f7877b0f
commit
6f03f92157
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ class Pry
|
|||
def tokenize(string)
|
||||
tokens = CodeRay.scan(string, :ruby)
|
||||
tokens = tokens.tokens.each_slice(2) if tokens.respond_to?(:tokens) # Coderay 1.0.0
|
||||
tokens
|
||||
tokens.to_a
|
||||
end
|
||||
|
||||
# Update the internal state about what kind of strings are open.
|
||||
|
|
Loading…
Add table
Reference in a new issue