mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/racc] Fix typo in a local variable name
https://github.com/ruby/racc/commit/03d0b86b90
This commit is contained in:
parent
481aa61cb7
commit
acf5ccd185
1 changed files with 2 additions and 2 deletions
|
@ -260,9 +260,9 @@ module Racc
|
|||
_, *blocks = *@scanner.epilogue.split(/^----/)
|
||||
blocks.each do |block|
|
||||
header, *body = block.lines.to_a
|
||||
label0, pathes = *header.sub(/\A-+/, '').split('=', 2)
|
||||
label0, paths = *header.sub(/\A-+/, '').split('=', 2)
|
||||
label = canonical_label(label0)
|
||||
(pathes ? pathes.strip.split(' ') : []).each do |path|
|
||||
(paths ? paths.strip.split(' ') : []).each do |path|
|
||||
add_user_code label, SourceText.new(File.read(path), path, 1)
|
||||
end
|
||||
add_user_code label, SourceText.new(body.join(''), @filename, line + 1)
|
||||
|
|
Loading…
Reference in a new issue