fixup! do not treat \0 as EOF
This commit is contained in:
parent
59450ed9ad
commit
670763dd93
1 changed files with 1 additions and 5 deletions
|
@ -733,11 +733,7 @@ impl IdentifiedBlock {
|
||||||
|
|
||||||
let start_paren = first == '(';
|
let start_paren = first == '(';
|
||||||
if start_paren {
|
if start_paren {
|
||||||
first = if let Some(c) = chars.next() {
|
first = chars.next()?;
|
||||||
c
|
|
||||||
} else {
|
|
||||||
return None;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let numbering = if first.is_ascii_digit() {
|
let numbering = if first.is_ascii_digit() {
|
||||||
|
|
Loading…
Reference in a new issue