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 | 03cfb96d56872f721ba6fc832f4fa9898f60d3d0 (patch) | |
| tree | ff24d1da95fba044ed642f5f4ff6cad47ac8e75f | |
| parent | b148ce2137b1698d589a3b7f62eeca648ad0793b (diff) | |
| download | ruby-03cfb96d56872f721ba6fc832f4fa9898f60d3d0.tar.gz ruby-03cfb96d56872f721ba6fc832f4fa9898f60d3d0.tar.xz ruby-03cfb96d56872f721ba6fc832f4fa9898f60d3d0.zip | |
* 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | ext/ripper/tools/preproc.rb | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,7 +1,10 @@ -Thu Oct 20 22:14:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Oct 20 22:22:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * parser.y (struct parser_params): parser never modify input string. + * ext/ripper/tools/preproc.rb (prelude): do not append surplus + newlines to fix line numbers. + Thu Oct 20 11:41:57 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * class.c, eval.c, hash.c, st.c, variable.c: changed /* ??? */ stuff 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+>/, '<val>') << $/ + out << line.sub(/<\w+>/, '<val>') when /\A%type/ - out << line.sub(/<\w+>/, '<val>') << $/ + out << line.sub(/<\w+>/, '<val>') else out << line end |
