Files
releases/v1
Johan Fylling f34d62bea0 ast: Only re-parse brace-led set terms as rule bodies (#8974)
After a rule head, an expression that parses to a set term is discarded
and re-parsed as `{ BODY }`, so that `p if { true }` is a body and not a
one-element set. That reinterpretation is only correct when the
expression starts with a `{`. `p if not {...}`, `p if set()` and `p if
({1, 2})` all parse to a set, but none have a leading brace, so there is
no ambiguity with a rule body and they should be kept as a sets.

Note: `not { ... }` with `future.keywords.not` imported parses to an
explicit body, not a set term, and so was never affected.

---------

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2026-08-07 11:21:00 -05:00
..
2026-07-24 10:15:07 +02:00
2025-10-10 17:51:02 +02:00
2026-07-24 10:15:07 +02:00
2026-05-13 13:11:27 +02:00
2024-12-12 15:27:34 +01:00