ruby/prism
Stan Lo 2eab962c53 [ruby/prism] Allow command calls in endless method bodies within assignments
Previously, endless method definitions in assignment contexts like
`x = def f = p 1` would fail to parse because command calls (method
calls without parentheses) were only accepted when the surrounding
binding power was less than `PM_BINDING_POWER_COMPOSITION`.

This fix specifically checks for assignment context and allows command
calls in those cases while maintaining the existing behavior for other
contexts. This ensures that:

- `x = def f = p 1` parses correctly (previously failed)
- `private def f = puts "Hello"` still produces the expected error

722af59ba3
2025-07-29 17:18:41 +00:00
..
templates [ruby/prism] Improve error handling for missing parentheses after 'not' in command calls 2025-07-16 15:48:09 +00:00
util [ruby/prism] Use a locale-insensitive version of tolower 2025-02-28 00:28:24 +00:00
api_pack.c [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
config.yml [ruby/prism] Improve error handling for missing parentheses after 'not' in command calls 2025-07-16 15:48:09 +00:00
defines.h [ruby/prism] Increase value of PRISM_DEPTH_MAXIMUM to 10000 2025-01-16 01:47:46 +00:00
encoding.c [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
encoding.h [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
extension.c [ruby/prism] Mark Prism as ractor-safe 2025-03-19 21:11:57 +00:00
extension.h [ruby/prism] Bump to v1.4.0 2025-03-18 19:06:34 +00:00
node.h [ruby/prism] Remove various unused memsize infra 2024-05-24 17:19:34 +00:00
options.c [ruby/prism] Do not use 0 to indicate the latest ruby version to parse 2025-07-29 17:17:28 +00:00
options.h [ruby/prism] Do not use 0 to indicate the latest ruby version to parse 2025-07-29 17:17:28 +00:00
pack.c [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
pack.h [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
parser.h [ruby/prism] Fix up multi target parsing 2024-10-04 16:22:21 +00:00
prettyprint.h [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
prism.c [ruby/prism] Allow command calls in endless method bodies within assignments 2025-07-29 17:18:41 +00:00
prism.h [ruby/prism] Rename fgets parameter to fix NetBSD 2025-03-02 18:14:36 +00:00
regexp.c [ruby/prism] Enable implicit fall-through errors 2025-01-11 19:09:05 -05:00
regexp.h [ruby/prism] Properly support parsing regexp in extended mode 2024-07-01 14:42:10 +00:00
static_literals.c [ruby/prism] Use isinf on non-mingw windows 2024-12-12 01:10:13 +00:00
static_literals.h [ruby/prism] Remove Debug::static_inspect 2024-05-24 17:19:33 +00:00
version.h [ruby/prism] Bump to v1.4.0 2025-03-18 19:06:34 +00:00