mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
fix: skip comments after comma in args list
This commit is contained in:
parent
ef87f4dd4e
commit
fdc239e4c5
@ -284,6 +284,7 @@ pub fn args_list(state: &mut State) -> ParseResult<Vec<Arg>> {
|
|||||||
|
|
||||||
if state.current.kind == TokenKind::Comma {
|
if state.current.kind == TokenKind::Comma {
|
||||||
state.next();
|
state.next();
|
||||||
|
state.skip_comments();
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user