mirror of
https://github.com/vlang/v.git
synced 2025-09-18 11:56:57 -04:00
parser: fix infinite loop on unexpected $ between statements
This commit is contained in:
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…
x
Reference in New Issue
Block a user