lib/parser/ruby23.y in parser-2.3.0.pre.6 vs lib/parser/ruby23.y in parser-2.3.0.0

- old
+ new

@@ -1674,23 +1674,26 @@ result = val[0] << val[1] } string1: tSTRING_BEG string_contents tSTRING_END { - result = @builder.string_compose(val[0], val[1], val[2]) + string = @builder.string_compose(val[0], val[1], val[2]) + result = @builder.dedent_string(string, @lexer.dedent_level) } | tSTRING { - result = @builder.string(val[0]) + string = @builder.string(val[0]) + result = @builder.dedent_string(string, @lexer.dedent_level) } | tCHARACTER { result = @builder.character(val[0]) } xstring: tXSTRING_BEG xstring_contents tSTRING_END { - result = @builder.xstring_compose(val[0], val[1], val[2]) + string = @builder.xstring_compose(val[0], val[1], val[2]) + result = @builder.dedent_string(string, @lexer.dedent_level) } regexp: tREGEXP_BEG regexp_contents tSTRING_END tREGEXP_OPT { opts = @builder.regexp_options(val[3])