Replace typo "bock" with "block"
This commit is contained in:
parent
19a310b0ac
commit
9306602f24
@ -307,7 +307,7 @@ class RubyLex
|
|||||||
case t[2]
|
case t[2]
|
||||||
when 'do'
|
when 'do'
|
||||||
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
|
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
|
||||||
# method_with_bock do; end
|
# method_with_block do; end
|
||||||
indent += 1
|
indent += 1
|
||||||
else
|
else
|
||||||
# while cond do; end # also "until" or "for"
|
# while cond do; end # also "until" or "for"
|
||||||
@ -350,7 +350,7 @@ class RubyLex
|
|||||||
case t[2]
|
case t[2]
|
||||||
when 'do'
|
when 'do'
|
||||||
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
|
if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
|
||||||
# method_with_bock do; end
|
# method_with_block do; end
|
||||||
depth_difference += 1
|
depth_difference += 1
|
||||||
else
|
else
|
||||||
# while cond do; end # also "until" or "for"
|
# while cond do; end # also "until" or "for"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user