From 9c61e0c831c8890bdfac5bf537bea21d4ae84e05 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 2 Aug 2023 10:01:45 -0400 Subject: [PATCH] [ruby/yarp] Ensure token cannot begin an expression https://github.com/ruby/yarp/commit/837522217c --- yarp/yarp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/yarp/yarp.c b/yarp/yarp.c index 1ad624a9a9..3d7fcd4595 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -7476,6 +7476,7 @@ token_begins_expression_p(yp_token_type_t type) { case YP_TOKEN_KEYWORD_END: case YP_TOKEN_KEYWORD_ELSE: case YP_TOKEN_KEYWORD_ELSIF: + case YP_TOKEN_KEYWORD_ENSURE: case YP_TOKEN_KEYWORD_THEN: case YP_TOKEN_KEYWORD_RESCUE: case YP_TOKEN_KEYWORD_WHEN: