mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/racc] Strip trailing whitespaces at the last line of actions
a887ebe529
This commit is contained in:
parent
046be65c08
commit
cbbdb4e5a2
28 changed files with 2514 additions and 2513 deletions
|
@ -450,6 +450,7 @@ module Racc
|
||||||
nest -= 1
|
nest -= 1
|
||||||
if nest == 0
|
if nest == 0
|
||||||
@in_block = nil
|
@in_block = nil
|
||||||
|
buf.sub!(/[ \t\f]+\z/, '')
|
||||||
return buf
|
return buf
|
||||||
end
|
end
|
||||||
buf << (pre = ch)
|
buf << (pre = ch)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue