diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-11 01:02:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-27 21:53:01 +0900 |
commit | 29e5fca7181de5f0db372374d5f39704f81f2731 (patch) | |
tree | 1bd3d238ff89ec5c830acb543db80b55060fb53b /test/yarp | |
parent | ff8278e52c08e6b7bc33ba994b996595b1b65833 (diff) | |
download | ruby-29e5fca7181de5f0db372374d5f39704f81f2731.tar.gz |
Syntax check of `retry` in the parser
Diffstat (limited to 'test/yarp')
-rw-r--r-- | test/yarp/parse_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb index 0baa099e94..aa3a76ad7c 100644 --- a/test/yarp/parse_test.rb +++ b/test/yarp/parse_test.rb @@ -89,9 +89,9 @@ module YARP src = source case relative - when /break|next|redo|if|unless|rescue|control|keywords/ + when /break|next|redo|if|unless|rescue|control|keywords|retry/ # Uncaught syntax errors: Invalid break, Invalid next - src = "->{\n#{src}\n}" + src = "->do\nrescue\n#{src}\nend" ripper_should_match = false end |