diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 13:23:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 13:23:26 +0000 |
commit | d284e44687ae8075941833e6867654a2b76e846a (patch) | |
tree | ff24d1da95fba044ed642f5f4ff6cad47ac8e75f /ext/ripper/tools/preproc.rb | |
parent | 14029df9302ba632bc271ae4149571d8b4a98675 (diff) |
* ext/ripper/tools/preproc.rb (prelude): do not append surplus
newlines to fix line numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/tools/preproc.rb')
-rwxr-xr-x | ext/ripper/tools/preproc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index bd3f33772c..06397cea05 100755 --- a/ext/ripper/tools/preproc.rb +++ b/ext/ripper/tools/preproc.rb @@ -51,9 +51,9 @@ def prelude(f, out) out << '%%' << $/ return when /\A%token/ - out << line.sub(/<\w+>/, '<val>') << $/ + out << line.sub(/<\w+>/, '<val>') when /\A%type/ - out << line.sub(/<\w+>/, '<val>') << $/ + out << line.sub(/<\w+>/, '<val>') else out << line end |