parser : suppression bug où le point virgule ne fonctionne pas s'il n'est pas précédé d'une espace
This commit is contained in:
parent
47c560c03a
commit
7fa67bd034
1 changed files with 7 additions and 1 deletions
|
@ -43,7 +43,13 @@ fn parse_main(characters: &mut Vec<char>, current_arg: &mut String) -> Vec<Strin
|
|||
|
||||
argv
|
||||
} else if current_char == ';' {
|
||||
vec![]
|
||||
let mut argv: Vec<String> = vec![];
|
||||
|
||||
if !current_arg.is_empty() {
|
||||
argv.push(current_arg.clone());
|
||||
}
|
||||
|
||||
argv
|
||||
} else {
|
||||
current_arg.push(current_char);
|
||||
parse_main(characters, current_arg)
|
||||
|
|
Loading…
Reference in a new issue