summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-02 10:01:45 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2023-08-16 17:47:32 -0700
commit9c61e0c831c8890bdfac5bf537bea21d4ae84e05 (patch)
tree770bf41c9895b8e653a5f8adab0f4a3ec69c5a9f
parent3d032cf3e894fbfea00a81acf1fd90a29de9bb63 (diff)
[ruby/yarp] Ensure token cannot begin an expression
https://github.com/ruby/yarp/commit/837522217c
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8226
-rw-r--r--yarp/yarp.c1
1 files changed, 1 insertions, 0 deletions
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: