Skip to content

Commit

Permalink
Remove no longer needed matching
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 17, 2024
1 parent 9e470eb commit e670892
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/ripper/tools/preproc.rb
Expand Up @@ -58,9 +58,6 @@ def prelude(f, out)
when /\A%%/
out << "%%\n"
return
when /\A%token/, /\A%type/, /\A} <node(?>_\w+)?>/
# types in %union which have corresponding set_yylval_* macro.
out << line
else
if (/^enum lex_state_(?:bits|e) \{/ =~ line)..(/^\}/ =~ line)
case line
Expand All @@ -72,8 +69,8 @@ def prelude(f, out)
@exprs[name] = "equals to " + (val.start_with?("(") ? "<tt>#{val}</tt>" : "+#{val}+")
end
end
out << line
end
out << line
end
end

Expand Down

0 comments on commit e670892

Please sign in to comment.