mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Add a "status" type and "try" keyword.
This commit is contained in:
1 parent
363dcbe714
commit
935cd73686
11 files changed
+94
-24
No files matched your search
@@ -641,7 +641,7 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
|
||||
case 0:
|
||||
// No-op.
|
||||
|
||||
case t.KeyOpenParen:
|
||||
case t.KeyOpenParen, t.KeyTry:
|
||||
// TODO: delete this hack that only matches "in.src.read_u8?()" etc.
|
||||
if isInSrc(q.tm, n, t.KeyReadU8, 0) ||
|
||||
isInSrc(q.tm, n, t.KeyReadU16BE, 0) || isInSrc(q.tm, n, t.KeyReadU32BE, 0) ||
|
||||
|
||||
Reference in new issue
Block a user