1
0
Fork 0
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:
Nobuyoshi Nakada 2019-10-31 00:54:50 +09:00
parent 046be65c08
commit cbbdb4e5a2
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
28 changed files with 2514 additions and 2513 deletions

View file

@ -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)