function arg spans include the entire list
This commit is contained in:
parent
f0895db939
commit
2b784f273a
@ -283,7 +283,7 @@ pub(crate) fn eat_call_args<I: Iterator<Item = Token>>(
|
|||||||
devour_whitespace_or_comment(toks)?;
|
devour_whitespace_or_comment(toks)?;
|
||||||
let mut name = String::new();
|
let mut name = String::new();
|
||||||
let mut val: Vec<Token> = Vec::new();
|
let mut val: Vec<Token> = Vec::new();
|
||||||
let span = toks.peek().unwrap().pos();
|
let mut span = toks.peek().unwrap().pos();
|
||||||
loop {
|
loop {
|
||||||
match toks.peek().unwrap().kind {
|
match toks.peek().unwrap().kind {
|
||||||
'$' => {
|
'$' => {
|
||||||
@ -324,6 +324,7 @@ pub(crate) fn eat_call_args<I: Iterator<Item = Token>>(
|
|||||||
},
|
},
|
||||||
val,
|
val,
|
||||||
);
|
);
|
||||||
|
span = span.merge(tok.pos());
|
||||||
return Ok(CallArgs(args, span));
|
return Ok(CallArgs(args, span));
|
||||||
}
|
}
|
||||||
',' => break,
|
',' => break,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user