Commit 004646e
committed
gh-145239: Accept unary plus in match literal patterns
Add '+' alternatives to signed_number and signed_real_number grammar
rules, mirroring how unary minus is already handled. Unary plus is a
no-op on numbers so the value is returned directly without wrapping in
a UnaryOp node.1 parent a5b76d5 commit 004646e
2 files changed
+58
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| 562 | + | |
561 | 563 | | |
562 | 564 | | |
563 | 565 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments