diff options
| author | yui-knk <spiketeika@gmail.com> | 2024-02-16 17:33:39 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2024-02-20 17:33:58 +0900 |
| commit | 2a4b6ed37cbb7acb622703be4db770457c2b72cc (patch) | |
| tree | 6b16dc5cafa26704532b06a997415001b51ccc6b /parse.y | |
| parent | 20dbc7a5f4098ec7612192c2b65bdc970eab6055 (diff) | |
Workaround for `Prism::ParseTest#test_filepath` for "unparser/corpus/literal/def.txt"
See the discussion on https://github.com/ruby/ruby/pull/9923
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -9412,7 +9412,17 @@ formal_argument(struct parser_params *p, ID id) #undef ERR } shadowing_lvar(p, id); + +/* + * Workaround for Prism::ParseTest#test_filepath for "unparser/corpus/literal/def.txt" + * + * See the discussion on https://github.com/ruby/ruby/pull/9923 + */ +#ifndef RIPPER return id; +#else + return 0; +#endif } #ifdef RIPPER |
