diff options
author | Kevin Newton <[email protected]> | 2025-03-18 11:35:28 -0400 |
---|---|---|
committer | git <[email protected]> | 2025-03-18 16:00:03 +0000 |
commit | 3d6fc2916907a351c274449280a82b020208f084 () | |
tree | 80b81c41b1eb304ba277d1821845ea827a179e79 /prism | |
parent | f69ad0e810e1fdc18dc12f77bbecfa49999ef3bf (diff) |
[ruby/prism] Make xstrings concat syntax error
https://.com/ruby/prism/commit/f734350499
-rw-r--r-- | prism/config.yml | 1 | ||||
-rw-r--r-- | prism/prism.c | 10 |
2 files changed, 11 insertions, 0 deletions
@@ -3140,6 +3140,7 @@ nodes: - EmbeddedStatementsNode - EmbeddedVariableNode - InterpolatedStringNode # `"a" "#{b}"` - name: closing_loc type: location? newline: parts @@ -5328,6 +5328,12 @@ pm_interpolated_string_node_append(pm_interpolated_string_node_t *node, pm_node_ // should clear the mutability flags. CLEAR_FLAGS(node); break; default: assert(false && "unexpected node type"); break; @@ -16823,6 +16829,10 @@ parse_strings(pm_parser_t *parser, pm_node_t *current, bool accepts_label, uint1 // If we haven't already created our container for concatenation, // we'll do that now. if (!concating) { concating = true; pm_token_t bounds = not_provided(parser); |