diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-20 20:10:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-20 20:10:46 +0900 |
commit | 6be402e172a537000de58a28af389cb55dd62ec8 (patch) | |
tree | 15af6549774ce5d977bbedccfa58cbdd4d72bb94 /parse.y | |
parent | 49b83b73ef380afac78e9495e52000509119a471 (diff) |
[Bug #19736] Recover after unterminated interpolation
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7963
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -5331,7 +5331,7 @@ string_content : tSTRING_CONTENT $<num>$ = p->heredoc_indent; p->heredoc_indent = 0; } - compstmt tSTRING_DEND + compstmt string_dend { COND_POP(); CMDARG_POP(); @@ -5348,6 +5348,10 @@ string_content : tSTRING_CONTENT } ; +string_dend : tSTRING_DEND + | END_OF_INPUT + ; + string_dvar : tGVAR { /*%%%*/ |