parser: fix infinite loop on unexpected $ between statements
parent
79b70006e6
commit
0b6b0aca09
|
@ -601,6 +601,7 @@ pub fn (mut p Parser) stmt(is_top_level bool) ast.Stmt {
|
|||
expr: p.vweb()
|
||||
}
|
||||
}
|
||||
p.error_with_pos('unexpected \$', p.tok.position())
|
||||
return ast.Stmt{}
|
||||
}
|
||||
.key_continue, .key_break {
|
||||
|
|
Loading…
Reference in New Issue