mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
07ac110ddd
Add support for if/unless guards in case/in pattern matching: case value in x if x > 0 then :positive in x unless x == 0 then :non_zero end Uses modifier_if/modifier_unless tokens since guards appear after an expression. Disable peephole optimization for pattern variable binding to prevent gen_move() from being optimized away when failed guard jumps target the binding instruction. Co-authored-by: Claude <noreply@anthropic.com>