mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: disallow unclosed arrays (#12273)
This commit is contained in:
@ -509,8 +509,8 @@ pub fn (mut p Parser) array() ?[]ast.Value {
|
||||
continue
|
||||
}
|
||||
.eof {
|
||||
// End Of File
|
||||
return arr
|
||||
return error(@MOD + '.' + @STRUCT + '.' + @FN +
|
||||
' could not parse array. Reached EOF "$p.tok.kind" "$p.tok.lit" ("$p.tok.lit") in this (excerpt): "...${p.excerpt()}..."')
|
||||
}
|
||||
.hash {
|
||||
// TODO array.comments << p.comment()
|
||||
|
Reference in New Issue
Block a user