[ruby/irb] Update descriptions of methods
From Reidline to Reline Update description used in take_corresponding_syntax_to_kw_do and is_the_in_correspond_to_a_for methods Use possessive noun correctly Second element https://github.com/ruby/irb/commit/4fa9714d6f
This commit is contained in:
parent
896626fa02
commit
80e2242da6
@ -867,7 +867,7 @@ module IRB
|
|||||||
|
|
||||||
# If the expression is invalid, Ripper.sexp should return nil which will
|
# If the expression is invalid, Ripper.sexp should return nil which will
|
||||||
# result in false being returned. Any valid expression should return an
|
# result in false being returned. Any valid expression should return an
|
||||||
# s-expression where the second selement of the top level array is an
|
# s-expression where the second element of the top level array is an
|
||||||
# array of parsed expressions. The first element of each expression is the
|
# array of parsed expressions. The first element of each expression is the
|
||||||
# expression's type.
|
# expression's type.
|
||||||
verbose, $VERBOSE = $VERBOSE, nil
|
verbose, $VERBOSE = $VERBOSE, nil
|
||||||
|
@ -265,7 +265,8 @@ module IRB
|
|||||||
|
|
||||||
class ReidlineInputMethod < InputMethod
|
class ReidlineInputMethod < InputMethod
|
||||||
include Reline
|
include Reline
|
||||||
# Creates a new input method object using Readline
|
|
||||||
|
# Creates a new input method object using Reline
|
||||||
def initialize
|
def initialize
|
||||||
IRB.__send__(:set_encoding, Reline.encoding_system_needs.name, override: false)
|
IRB.__send__(:set_encoding, Reline.encoding_system_needs.name, override: false)
|
||||||
super
|
super
|
||||||
|
@ -477,7 +477,7 @@ class RubyLex
|
|||||||
|
|
||||||
def take_corresponding_syntax_to_kw_do(tokens, index)
|
def take_corresponding_syntax_to_kw_do(tokens, index)
|
||||||
syntax_of_do = nil
|
syntax_of_do = nil
|
||||||
# Finding a syntax correnponding to "do".
|
# Finding a syntax corresponding to "do".
|
||||||
index.downto(0) do |i|
|
index.downto(0) do |i|
|
||||||
tk = tokens[i]
|
tk = tokens[i]
|
||||||
# In "continue", the token isn't the corresponding syntax to "do".
|
# In "continue", the token isn't the corresponding syntax to "do".
|
||||||
@ -508,7 +508,7 @@ class RubyLex
|
|||||||
|
|
||||||
def is_the_in_correspond_to_a_for(tokens, index)
|
def is_the_in_correspond_to_a_for(tokens, index)
|
||||||
syntax_of_in = nil
|
syntax_of_in = nil
|
||||||
# Finding a syntax correnponding to "do".
|
# Finding a syntax corresponding to "do".
|
||||||
index.downto(0) do |i|
|
index.downto(0) do |i|
|
||||||
tk = tokens[i]
|
tk = tokens[i]
|
||||||
# In "continue", the token isn't the corresponding syntax to "do".
|
# In "continue", the token isn't the corresponding syntax to "do".
|
||||||
|
Loading…
x
Reference in New Issue
Block a user