diff --git a/src/fusion/matching.nim b/src/fusion/matching.nim index afb53ce..282b121 100644 --- a/src/fusion/matching.nim +++ b/src/fusion/matching.nim @@ -1106,7 +1106,7 @@ func fixBrokenBracket(inNode: NimNode): NimNode = func isBrokenPar(n: NimNode): bool = result = ( n.kind == nnkCommand and - n[1].kind == nnkPar + n[1].kind in {nnkPar, nnkTupleConstr} ) @@ -1139,7 +1139,7 @@ func parseMatchExpr*(n: NimNode): Match = result.rhsNode = n result.infix = "==" - of nnkPar: # Named or unnamed tuple + of nnkPar, nnkTupleConstr: # Named or unnamed tuple if n.isNamedTuple(): # `(fld1: ...)` result = parseKVTuple(n)