Message409126
I like the lookahead. We could also make the comma and the message mandatory when inside parentheses:
| 'assert' '(' a=expression ',' b=expression [','] ')' &(NEWLINE | ';')
| 'assert' a=expression b=[',' z=expression { z }]
(And probably add an "invalid" rule to cover tuples with 0, 1, 3 or more elements.) |
|
Date |
User |
Action |
Args |
2021-12-24 06:04:48 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, gregory.p.smith, serhiy.storchaka, lys.nikolaou, pablogsal, slebedev |
2021-12-24 06:04:48 | gvanrossum | set | messageid: <1640325888.4.0.220592130506.issue46167@roundup.psfhosted.org> |
2021-12-24 06:04:48 | gvanrossum | link | issue46167 messages |
2021-12-24 06:04:48 | gvanrossum | create | |
|