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
https://github.com/ruby/racc/commit/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
|
||||
if nest == 0
|
||||
@in_block = nil
|
||||
buf.sub!(/[ \t\f]+\z/, '')
|
||||
return buf
|
||||
end
|
||||
buf << (pre = ch)
|
||||
|
|
Loading…
Reference in a new issue