fix(parser): no syntax errors are displayed

This commit is contained in:
Shunsuke Shibayama 2024-11-20 20:43:55 +09:00
parent b2fb80c41c
commit 7a64828459
2 changed files with 3 additions and 18 deletions

View file

@ -277,7 +277,7 @@ impl Parser {
fn next_expr(&mut self) {
while let Some(t) = self.peek() {
match t.category() {
TC::Separator | TC::DefOp | TC::LambdaOp => {
TC::Separator => {
self.skip();
return;
}