aboutsummaryrefslogtreecommitdiffstats
path: root/yarp
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-09-15 14:01:59 -0400
committergit <svn-admin@ruby-lang.org>2023-09-15 18:02:04 +0000
commit4012ba4ecf781a75fb967c8210ad19049cc3f8cc (patch)
tree25c18b2a504305c857039e984035d1b49312173b /yarp
parente50b7bf784b53ac126986dd7f9fd22ccc9b59c60 (diff)
downloadruby-4012ba4ecf781a75fb967c8210ad19049cc3f8cc.tar.gz
[ruby/yarp] Fix string delimiter with "@" confused for embedded
variable (https://github.com/ruby/yarp/pull/1521) https://github.com/ruby/yarp/commit/3ec0699622
Diffstat (limited to 'yarp')
-rw-r--r--yarp/yarp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c
index 3eabc55600..cc4d8c52e8 100644
--- a/yarp/yarp.c
+++ b/yarp/yarp.c
@@ -5801,7 +5801,7 @@ lex_interpolation(yp_parser_t *parser, const uint8_t *pound) {
// If we didn't get an valid interpolation, then this is just regular
// string content. This is like if we get "#@-". In this case the caller
// should keep lexing.
- parser->current.end = variable;
+ parser->current.end = pound + 1;
return YP_TOKEN_NOT_PROVIDED;
}
case '$':