diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-31 00:54:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-04 09:28:01 +0900 |
commit | cbbdb4e5a2eb46750d3c455def99486d23fc625b (patch) | |
tree | 511846bff469875606fbf51193057a3fa7ac31ed /lib | |
parent | 046be65c08e10973fccc19a04b95a9422a2dae65 (diff) |
[ruby/racc] Strip trailing whitespaces at the last line of actions
https://github.com/ruby/racc/commit/a887ebe529
Diffstat (limited to 'lib')
-rw-r--r-- | lib/racc/grammarfileparser.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/racc/grammarfileparser.rb b/lib/racc/grammarfileparser.rb index ff7c682f7d..3ae539a4de 100644 --- a/lib/racc/grammarfileparser.rb +++ b/lib/racc/grammarfileparser.rb @@ -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) |