[ruby/prism] Blocks & kwargs are not valid in index assignments

Ruby feature: https://bugs.ruby-lang.org/issues/20952

https://github.com/ruby/prism/commit/e612df5f36
This commit is contained in:
Matt Valentine-House 2024-12-16 11:26:36 +00:00 committed by git
parent a46fe5c807
commit 39d0ebb6e8

View File

@ -19,7 +19,11 @@ module Prism
end end
if RUBY_VERSION < "3.4" if RUBY_VERSION < "3.4"
filepaths -= ["it_with_ordinary_parameter.txt"] filepaths -= [
"it_with_ordinary_parameter.txt",
"block_args_in_array_assignment.txt",
"keyword_args_in_array_assignment.txt"
]
end end
if RUBY_VERSION < "3.4" || RUBY_RELEASE_DATE < "2024-07-24" if RUBY_VERSION < "3.4" || RUBY_RELEASE_DATE < "2024-07-24"