summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rwxr-xr-xext/ripper/tools/preproc.rb4
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