From cecd1de2eb33719269ce5fd68217cdab96a3dfad Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 30 Sep 2023 17:18:50 +0900 Subject: Use rb_node_opt_arg_t and rb_node_kw_arg_t instead of NODE --- ext/ripper/tools/preproc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ripper/tools') diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index a98a60e319..a0d5e79d7d 100644 --- a/ext/ripper/tools/preproc.rb +++ b/ext/ripper/tools/preproc.rb @@ -59,9 +59,9 @@ def prelude(f, out) when /\A%%/ out << "%%\n" return - when /\A%token/, /\A%type/, /\A} / + when /\A%token/, /\A%type/, /\A} _\w+)?>/ # types in %union which have corresponding set_yylval_* macro. - out << line.sub(/<(?:node|num|id)>/, '') + out << line.sub(/<(?:node(?>_\w+)?|num|id)>/, '') when /^enum lex_state_(?:bits|e) \{/ lex_state_def = true out << line -- cgit v1.2.3