@@ -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)
@@ -135,7 +135,7 @@ function parse_call(ps::ParseState, ret::EXPR, ismacro=false)
135135 end
136136 # args = ismacro ? EXPR[ret, EXPR(:NOTHING, 0, 0)] : EXPR[ret]
137137 trivia = EXPR[EXPR(next(ps))]
138- @closeparen ps @default ps parse_comma_sep(ps, args, trivia, ! ismacro, insert_params_at = ismacro ? 3 : 2 )
138+ @closeparen ps @default ps parse_comma_sep(ps, args, trivia, ! ismacro, insert_params_at= ismacro ? 3 : 2 )
139139 accept_rparen(ps, trivia)
140140 ret = EXPR(ismacro ? :macrocall : syntaxcall ? ret : :call, args, trivia)
141141 end
146146Parses a comma separated list, optionally allowing for conversion of
147147assignment (`=`) expressions to `Kw`.
148148"""
149- function parse_comma_sep(ps:: ParseState , args:: Vector{EXPR} , trivia:: Vector{EXPR} , kw = true , block = false , istuple = false ; insert_params_at = 2 )
149+ function parse_comma_sep(ps:: ParseState , args:: Vector{EXPR} , trivia:: Vector{EXPR} , kw= true , block= false , istuple= false ; insert_params_at= 2 )
150150 prevpos = position(ps)
151151 @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while ! closer(ps)
152152 a = parse_expression(ps)
@@ -205,11 +205,11 @@ end
205205
206206Parses parameter arguments for a function call (e.g. following a semicolon).
207207"""
208- function parse_parameters(ps:: ParseState , args:: Vector{EXPR} , args1:: Vector{EXPR} = EXPR[], insert_params_at = 2 ; usekw = true )
208+ function parse_parameters(ps:: ParseState , args:: Vector{EXPR} , args1:: Vector{EXPR} = EXPR[], insert_params_at= 2 ; usekw= true )
209209 trivia = EXPR[]
210210 isfirst = isempty(args1)
211211 prevpos = position(ps)
212- @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while ! isfirst || (@nocloser ps :semicolon ! closer(ps))
212+ @nocloser ps :inwhere @nocloser ps :newline @closer ps :comma while ! isfirst || (@nocloser ps :semicolon ! closer(ps))
213213 a = isfirst ? parse_expression(ps) : first(args1)
214214 if usekw && _do_kw_convert(ps, a)
215215 a = _kw_convert(a)
347347function get_appropriate_child_to_expand(x)
348348 if headof(x) === :generator && ! (headof(x. args[1 ]) in (:generator, :flatten))
349349 return x, x. args[1 ]
350- elseif headof(x) === :flatten && headof(x. args[1 ]) === :generator && headof(x. args[1 ]. args[1 ]) === :generator
350+ elseif headof(x) === :flatten && headof(x. args[1 ]) === :generator && headof(x. args[1 ]. args[1 ]) === :generator
351351 x. args[1 ], x. args[1 ]. args[1 ]
352352 else
353353 get_appropriate_child_to_expand(x. args[1 ])
@@ -365,7 +365,7 @@ function parse_nonstd_identifier(ps)
365365 end
366366end
367367
368- function parse_importexport_item(ps, is_colon = false )
368+ function parse_importexport_item(ps, is_colon= false )
369369 if kindof(ps. nt) === Tokens. AT_SIGN
370370 parse_macroname(next(ps))
371371 elseif kindof(ps. nt) === Tokens. LPAREN
@@ -377,7 +377,7 @@ function parse_importexport_item(ps, is_colon = false)
377377 parse_unary(ps, INSTANCE(next(ps)))
378378 elseif ! is_colon && isoperator(ps. nt)
379379 next(ps)
380- EXPR(:OPERATOR, ps. nt. startbyte - ps. t. startbyte, 1 + ps. t. endbyte - ps. t. startbyte, val(ps. t, ps))
380+ EXPR(:OPERATOR, ps. nt. startbyte - ps. t. startbyte, 1 + ps. t. endbyte - ps. t. startbyte, val(ps. t, ps))
381381 elseif is_nonstd_identifier(ps)
382382 parse_nonstd_identifier(ps)
383383 else
0 commit comments