summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-11-03 19:05:39 +0900
committergit <[email protected]>2021-11-04 08:58:44 +0900
commitacf5ccd1855f47e8fcd88de80fa005612adc8268 ()
tree6134b7f59a5e81edea89e861e65c2432d19a95d1
parent481aa61cb7b527328b7149c8a27c5e7e581b2091 (diff)
[ruby/racc] Fix typo in a local variable name
https://.com/ruby/racc/commit/03d0b86b90
-rw-r--r--lib/racc/grammarfileparser.rb4
1 files changed, 2 insertions, 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)
label = canonical_label(label0)
- (pathes ? pathes.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)