From 26625bc33c32e0945bf727234a3ce6da1eb0ddc4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 19 Nov 2019 17:17:00 +0900 Subject: [ripper] Quoted label without expression must be a local variable The difference from 0b8c73aa65add5c57b46b0cfdf4e661508802172 is to add the result of `string_add` event to marking objects. ```C RNODE($1)->nd_rval = add_mark_object(p, $$); ``` --- test/ripper/test_sexp.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ripper/test_sexp.rb') diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb index d6c7d60f06..9b3a99e522 100644 --- a/test/ripper/test_sexp.rb +++ b/test/ripper/test_sexp.rb @@ -435,6 +435,9 @@ eot [__LINE__, %q{ case 0; in a?:; end }] => nil, + + [__LINE__, %q{ case 0; in "A":; end }] => + nil, } pattern_matching_data.each do |(i, src), expected| define_method(:"test_pattern_matching_#{i}") do -- cgit v1.2.3