mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-18 18:45:23 +00:00
restore if expression
This commit is contained in:
parent
6ae42e249b
commit
fde6b61270
1 changed files with 4 additions and 3 deletions
|
@ -438,9 +438,10 @@ where
|
||||||
fn take_number(&mut self, radix: u32) -> Option<char> {
|
fn take_number(&mut self, radix: u32) -> Option<char> {
|
||||||
let take_char = Lexer::<T>::is_digit_of_radix(self.window[0], radix);
|
let take_char = Lexer::<T>::is_digit_of_radix(self.window[0], radix);
|
||||||
|
|
||||||
match take_char {
|
if take_char {
|
||||||
true => Some(self.next_char().unwrap()),
|
Some(self.next_char().unwrap())
|
||||||
_ => None,
|
} else {
|
||||||
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue