@@ -2996,17 +2996,17 @@ def pipe_handle(self, original, loc, tokens, **kwargs):
2996
2996
raise CoconutDeferredSyntaxError ("cannot star pipe into operator partial" , loc )
2997
2997
op , arg = split_item
2998
2998
return "({op})({x}, {arg})" .format (op = op , x = subexpr , arg = arg )
2999
+ elif name == "await" :
3000
+ internal_assert (not split_item , "invalid split await pipe item tokens" , split_item )
3001
+ if stars :
3002
+ raise CoconutDeferredSyntaxError ("cannot star pipe into await" , loc )
3003
+ return self .await_expr_handle (original , loc , [subexpr ])
2999
3004
elif name == "right arr concat partial" :
3000
3005
if stars :
3001
3006
raise CoconutDeferredSyntaxError ("cannot star pipe into array concatenation operator partial" , loc )
3002
3007
op , arg = split_item
3003
3008
internal_assert (op .lstrip (";" ) == "" , "invalid arr concat op" , op )
3004
3009
return "_coconut_arr_concat_op({dim}, {x}, {arg})" .format (dim = len (op ), x = subexpr , arg = arg )
3005
- elif name == "await" :
3006
- internal_assert (not split_item , "invalid split await pipe item tokens" , split_item )
3007
- if stars :
3008
- raise CoconutDeferredSyntaxError ("cannot star pipe into await" , loc )
3009
- return self .await_expr_handle (original , loc , [subexpr ])
3010
3010
elif name == "namedexpr" :
3011
3011
if stars :
3012
3012
raise CoconutDeferredSyntaxError ("cannot star pipe into named expression partial" , loc )
0 commit comments