@@ -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
@@ -364,7 +364,7 @@ function _to_expr(node::SyntaxNode; iteration_spec=false, need_linenodes=true,
364364 return Expr (:call , func, args... )
365365 end
366366 elseif headsym == :chain
367- if kind (node_args[1 ]) in KSet " /> \ >"
367+ if kind (node_args[1 ]) in KSet " /> /> >"
368368 return Expr (:call , :(JuliaSyntax. compose_chain), args... )
369369 else
370370 return Expr (:call , :(JuliaSyntax. chain), args... )
@@ -374,7 +374,7 @@ function _to_expr(node::SyntaxNode; iteration_spec=false, need_linenodes=true,
374374end
375375
376376# -------------------------------------------------------------------------------
377- # Targets for lowering /> and \ > syntax
377+ # Targets for lowering /> and /> > syntax
378378
379379# For use with />
380380struct FixButFirst{F,Args,Kws}
@@ -390,7 +390,7 @@ Fix all arguments except for the first
390390"""
391391fixbutfirst (f, args... ; kws... ) = FixButFirst (f, args, kws)
392392
393- # For use with \ >
393+ # For use with /> >
394394struct FixButLast{F,Args,Kws}
395395 f:: F
396396 args:: Args
@@ -408,7 +408,7 @@ chain(x, f, fs...) = chain(f(x), fs...)
408408chain (x) = x
409409
410410# An example of how chain() can be used to rewrite
411- # `x \> map(f) \ > reduce(g)` into `mapreduce(f, g, x)`
411+ # `x />> map(f) /> > reduce(g)` into `mapreduce(f, g, x)`
412412function chain (x, f1:: FixButLast{typeof(map)} , f2:: FixButLast{typeof(reduce)} , fs... )
413413 chain (x, fixbutlast (mapreduce, f1. args... , f2. args... ; f1. kwargs... , f2. kwargs... ), fs... )
414414end
0 commit comments