diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-17 18:47:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-17 18:47:18 +0900 |
commit | e670892497f2eed07983617104ea8d38da2706b1 (patch) | |
tree | 981fcac7cee3d2477dc9881c37b86ac1e5781bad /ext/ripper/tools | |
parent | 9e470ebdcd59bc2655d78a61e2a8e8bf6a4e0521 (diff) |
Remove no longer needed matching
Diffstat (limited to 'ext/ripper/tools')
-rw-r--r-- | ext/ripper/tools/preproc.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index a36c98689b..a54302fb91 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} <node(?>_\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?("(") ? "<tt>#{val}</tt>" : "+#{val}+") end end - out << line end + out << line end end |