@@ -104,7 +104,7 @@ assignment_def(
104104 int loc: @location ref
105105);
106106
107- @bare_string_child_type = @interpolation | @token_escape_sequence
107+ @bare_string_child_type = @interpolation | @token_escape_sequence | @token_string_content
108108
109109#keyset[bare_string, index]
110110bare_string_child(
@@ -118,7 +118,7 @@ bare_string_def(
118118 int loc: @location ref
119119);
120120
121- @bare_symbol_child_type = @interpolation | @token_escape_sequence
121+ @bare_symbol_child_type = @interpolation | @token_escape_sequence | @token_string_content
122122
123123#keyset[bare_symbol, index]
124124bare_symbol_child(
@@ -362,11 +362,6 @@ element_reference_def(
362362 int loc: @location ref
363363);
364364
365- else_condition(
366- unique int else: @else ref,
367- unique int reserved_word: @reserved_word ref
368- );
369-
370365@else_child_type = @token_empty_statement | @underscore_statement
371366
372367#keyset[else, index]
@@ -493,7 +488,7 @@ hash_splat_parameter_def(
493488 int loc: @location ref
494489);
495490
496- @heredoc_body_child_type = @interpolation | @token_escape_sequence | @token_heredoc_end
491+ @heredoc_body_child_type = @interpolation | @token_escape_sequence | @token_heredoc_content | @ token_heredoc_end
497492
498493#keyset[heredoc_body, index]
499494heredoc_body_child(
@@ -768,7 +763,7 @@ redo_def(
768763 int loc: @location ref
769764);
770765
771- @regex_child_type = @interpolation | @token_escape_sequence
766+ @regex_child_type = @interpolation | @token_escape_sequence | @token_string_content
772767
773768#keyset[regex, index]
774769regex_child(
@@ -928,7 +923,7 @@ splat_parameter_def(
928923 int loc: @location ref
929924);
930925
931- @string_child_type = @interpolation | @token_escape_sequence
926+ @string_child_type = @interpolation | @token_escape_sequence | @token_string_content
932927
933928#keyset[string__, index]
934929string_child(
@@ -954,7 +949,7 @@ string_array_def(
954949 int loc: @location ref
955950);
956951
957- @subshell_child_type = @interpolation | @token_escape_sequence
952+ @subshell_child_type = @interpolation | @token_escape_sequence | @token_string_content
958953
959954#keyset[subshell, index]
960955subshell_child(
@@ -976,7 +971,7 @@ superclass_def(
976971 int loc: @location ref
977972);
978973
979- @symbol_child_type = @interpolation | @token_escape_sequence
974+ @symbol_child_type = @interpolation | @token_escape_sequence | @token_string_content
980975
981976#keyset[symbol, index]
982977symbol_child(
@@ -1146,16 +1141,18 @@ case @token.kind of
11461141| 9 = @token_float
11471142| 10 = @token_global_variable
11481143| 11 = @token_heredoc_beginning
1149- | 12 = @token_heredoc_end
1150- | 13 = @token_identifier
1151- | 14 = @token_instance_variable
1152- | 15 = @token_integer
1153- | 16 = @token_nil
1154- | 17 = @token_operator
1155- | 18 = @token_self
1156- | 19 = @token_super
1157- | 20 = @token_true
1158- | 21 = @token_uninterpreted
1144+ | 12 = @token_heredoc_content
1145+ | 13 = @token_heredoc_end
1146+ | 14 = @token_identifier
1147+ | 15 = @token_instance_variable
1148+ | 16 = @token_integer
1149+ | 17 = @token_nil
1150+ | 18 = @token_operator
1151+ | 19 = @token_self
1152+ | 20 = @token_string_content
1153+ | 21 = @token_super
1154+ | 22 = @token_true
1155+ | 23 = @token_uninterpreted
11591156;
11601157
11611158
0 commit comments