mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix(parser): no syntax errors are displayed
This commit is contained in:
parent
b2fb80c41c
commit
7a64828459
2 changed files with 3 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue