@@ -326,7 +326,7 @@ function _to_expr(node::SyntaxNode; iteration_spec=false, need_linenodes=true,
326326 args[1 ] = Expr (headsym, args[1 ]. args... )
327327 headsym = :const
328328 end
329- elseif headsym == Symbol (" />" ) || headsym == Symbol (" \\ >" )
329+ elseif headsym == Symbol (" />" ) || headsym == Symbol (" /> >" )
330330 callex = only (args)
331331 @assert Meta. isexpr (callex, :call )
332332 args = callex. args
@@ -350,7 +350,7 @@ function _to_expr(node::SyntaxNode; iteration_spec=false, need_linenodes=true,
350350 return Expr (:call , func, args... )
351351 end
352352 elseif headsym == :chain
353- if kind (node_args[1 ]) in KSet " /> \ >"
353+ if kind (node_args[1 ]) in KSet " /> /> >"
354354 return Expr (:call , :(JuliaSyntax. compose_chain), args... )
355355 else
356356 return Expr (:call , :(JuliaSyntax. chain), args... )
@@ -360,7 +360,7 @@ function _to_expr(node::SyntaxNode; iteration_spec=false, need_linenodes=true,
360360end
361361
362362# -------------------------------------------------------------------------------
363- # Targets for lowering /> and \ > syntax
363+ # Targets for lowering /> and /> > syntax
364364
365365# For use with />
366366struct FixButFirst{F,Args,Kws}
@@ -376,7 +376,7 @@ Fix all arguments except for the first
376376"""
377377fixbutfirst (f, args... ; kws... ) = FixButFirst (f, args, kws)
378378
379- # For use with \ >
379+ # For use with /> >
380380struct FixButLast{F,Args,Kws}
381381 f:: F
382382 args:: Args
@@ -394,7 +394,7 @@ chain(x, f, fs...) = chain(f(x), fs...)
394394chain (x) = x
395395
396396# An example of how chain() can be used to rewrite
397- # `x \> map(f) \ > reduce(g)` into `mapreduce(f, g, x)`
397+ # `x />> map(f) /> > reduce(g)` into `mapreduce(f, g, x)`
398398function chain (x, f1:: FixButLast{typeof(map)} , f2:: FixButLast{typeof(reduce)} , fs... )
399399 chain (x, fixbutlast (mapreduce, f1. args... , f2. args... ; f1. kwargs... , f2. kwargs... ), fs... )
400400end
0 commit comments