Update parse.rs

This commit is contained in:
Shunsuke Shibayama 2023-05-09 23:06:19 +09:00
parent 2ec2418df9
commit 61855db0c7

View file

@ -471,7 +471,12 @@ impl Parser {
}
}
}
_ => switch_unreachable!(),
None => {
let err =
ParseError::failed_to_analyze_block(line!() as usize, Location::Unknown);
self.errs.push(err);
break;
}
}
}
if block.is_empty() {