From 03cfb96d56872f721ba6fc832f4fa9898f60d3d0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 20 Oct 2005 13:23:26 +0000 Subject: * ext/ripper/tools/preproc.rb (prelude): do not append surplus newlines to fix line numbers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/ripper/tools/preproc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ripper') diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index bd3f33772..06397cea0 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+>/, '') << $/ + out << line.sub(/<\w+>/, '') when /\A%type/ - out << line.sub(/<\w+>/, '') << $/ + out << line.sub(/<\w+>/, '') else out << line end -- cgit