parser : garde pour annuler un bug de parser dans la fonction des variables
This commit is contained in:
parent
8906ac7c70
commit
5fca142fea
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ fn parse_variable(characters: &mut Vec<char>, variables: &Variables) -> String {
|
||||||
current_char = characters.pop().unwrap();
|
current_char = characters.pop().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if current_char.is_whitespace() {
|
||||||
|
characters.push(current_char);
|
||||||
|
}
|
||||||
|
|
||||||
variables.get(var_name.as_str())
|
variables.get(var_name.as_str())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue