parser : ajout backslash
This commit is contained in:
parent
ddcbf4d7ef
commit
066530d406
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ fn parse_main(characters: &mut Vec<char>, current_arg: &mut String) -> Vec<Strin
|
|||
} else {
|
||||
parse_main(characters, current_arg)
|
||||
}
|
||||
} else if current_char == '\\' {
|
||||
current_arg.push(characters.pop().unwrap());
|
||||
parse_main(characters, current_arg)
|
||||
} else if current_char == '\'' {
|
||||
let mut argv = vec![parse_quote(characters).unwrap()];
|
||||
argv.append(&mut parse_main(characters, &mut String::default()));
|
||||
|
|
Loading…
Reference in a new issue