lib/ruby30_parser.y in ruby_parser-3.19.1 vs lib/ruby30_parser.y in ruby_parser-3.19.2

- old
+ new

@@ -2532,13 +2532,25 @@ p_primitive: literal | strings | xstring | regexp | words + { + result = ary_to_pat val[0] + } | qwords + { + result = ary_to_pat val[0] + } | symbols + { + result = ary_to_pat val[0] + } | qsymbols + { + result = ary_to_pat val[0] + } | keyword_variable { # TODO? if (!($$ = gettable(p, $1, &@$))) $$ = NEW_BEGIN(0, &@$); var, = val @@ -2548,10 +2560,10 @@ p_variable: tIDENTIFIER { # TODO: error_duplicate_pattern_variable(p, $1, &@1); # TODO: assignable(p, $1, 0, &@$); - result = wrap :lvar, val[0] + result = wrap :lasgn, val[0] } p_var_ref: tCARET tIDENTIFIER { # TODO: check id against env for lvar or dvar