@@ -31,7 +31,7 @@ Parses an iterator, allowing for the preceding keyword `outer`. Returns an
3131error expression if an invalid expression is parsed (anything other than
3232`=`, `in`, `∈`).
3333"""
34- function parse_iterator(ps::ParseState, outer = parse_outer(ps))
34+ function parse_iterator(ps::ParseState, outer= parse_outer(ps))
3535 arg = @closer ps :range @closer ps :ws @nocloser ps :wsop parse_expression(ps)
3636 if !is_range(arg)
3737 arg = mErrorToken(ps, arg, InvalidIterator)
@@ -136,7 +136,7 @@ function parse_call(ps::ParseState, ret::EXPR, ismacro=false)
136136 end
137137 # args = ismacro ? EXPR[ret, EXPR(:NOTHING, 0, 0)] : EXPR[ret]
138138 trivia = EXPR[EXPR(next(ps))]
139- @closeparen ps @default ps parse_comma_sep(ps, args, trivia, !ismacro, insert_params_at = ismacro ? 3 : 2)
139+ @closeparen ps @default ps parse_comma_sep(ps, args, trivia, !ismacro, insert_params_at= ismacro ? 3 : 2)
140140 accept_rparen(ps, trivia)
141141 ret = EXPR(ismacro ? :macrocall : syntaxcall ? ret : :call, args, trivia)
142142 end
147147Parses a comma separated list, optionally allowing for conversion of
148148assignment (`=`) expressions to `Kw`.
149149"""
150- function parse_comma_sep(ps::ParseState, args::Vector{EXPR}, trivia::Vector{EXPR}, kw = true, block = false, istuple = false; insert_params_at = 2)
150+ function parse_comma_sep(ps::ParseState, args::Vector{EXPR}, trivia::Vector{EXPR}, kw= true, block= false, istuple= false; insert_params_at= 2)
151151 prevpos = position(ps)
152152 @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while !closer(ps)
153153 a = parse_expression(ps)
@@ -206,11 +206,11 @@ end
206206
207207Parses parameter arguments for a function call (e.g. following a semicolon).
208208"""
209- function parse_parameters(ps::ParseState, args::Vector{EXPR}, args1::Vector{EXPR} = EXPR[], insert_params_at = 2; usekw = true)
209+ function parse_parameters(ps::ParseState, args::Vector{EXPR}, args1::Vector{EXPR}= EXPR[], insert_params_at= 2; usekw= true)
210210 trivia = EXPR[]
211211 isfirst = isempty(args1)
212212 prevpos = position(ps)
213- @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while !isfirst || (@nocloser ps :semicolon !closer(ps))
213+ @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while !isfirst || (@nocloser ps :semicolon !closer(ps))
214214 a = isfirst ? parse_expression(ps) : first(args1)
215215 if usekw && _do_kw_convert(ps, a)
216216 a = _kw_convert(a)
348348function get_appropriate_child_to_expand(x)
349349 if headof(x) === :generator && !(headof(x.args[1]) in (:generator, :flatten))
350350 return x, x.args[1]
351- elseif headof(x) === :flatten && headof(x.args[1]) === :generator && headof(x.args[1].args[1]) === :generator
351+ elseif headof(x) === :flatten && headof(x.args[1]) === :generator && headof(x.args[1].args[1]) === :generator
352352 x.args[1], x.args[1].args[1]
353353 else
354354 get_appropriate_child_to_expand(x.args[1])
@@ -366,7 +366,7 @@ function parse_nonstd_identifier(ps)
366366 end
367367end
368368
369- function parse_importexport_item(ps, is_colon = false)
369+ function parse_importexport_item(ps, is_colon= false)
370370 if kindof(ps.nt) === Tokens.AT_SIGN
371371 parse_macroname(next(ps))
372372 elseif kindof(ps.nt) === Tokens.LPAREN
@@ -378,7 +378,7 @@ function parse_importexport_item(ps, is_colon = false)
378378 parse_unary(ps, INSTANCE(next(ps)))
379379 elseif !is_colon && isoperator(ps.nt)
380380 next(ps)
381- EXPR(:OPERATOR, ps.nt.startbyte - ps.t.startbyte, 1 + ps.t.endbyte - ps.t.startbyte, val(ps.t, ps))
381+ EXPR(:OPERATOR, ps.nt.startbyte - ps.t.startbyte, 1 + ps.t.endbyte - ps.t.startbyte, val(ps.t, ps))
382382 elseif is_nonstd_identifier(ps)
383383 parse_nonstd_identifier(ps)
384384 else
0 commit comments