1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fix Jruby...

This commit is contained in:
Conrad Irwin 2012-04-24 23:55:13 -07:00
parent 00f7877b0f
commit 6f03f92157

View file

@ -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.