diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index a36c98689b05bd..a54302fb91e608 100644 --- a/ext/ripper/tools/preproc.rb +++ b/ext/ripper/tools/preproc.rb @@ -58,9 +58,6 @@ def prelude(f, out) when /\A%%/ out << "%%\n" return - when /\A%token/, /\A%type/, /\A} _\w+)?>/ - # types in %union which have corresponding set_yylval_* macro. - out << line else if (/^enum lex_state_(?:bits|e) \{/ =~ line)..(/^\}/ =~ line) case line @@ -72,8 +69,8 @@ def prelude(f, out) @exprs[name] = "equals to " + (val.start_with?("(") ? "#{val}" : "+#{val}+") end end - out << line end + out << line end end