summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/v2/parser
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/v2/parser')
-rw-r--r--vendor/github.com/d5/tengo/v2/parser/parser.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/v2/parser/parser.go b/vendor/github.com/d5/tengo/v2/parser/parser.go
index eaa9dc93..a12af614 100644
--- a/vendor/github.com/d5/tengo/v2/parser/parser.go
+++ b/vendor/github.com/d5/tengo/v2/parser/parser.go
@@ -143,6 +143,7 @@ func (p *Parser) ParseFile() (file *File, err error) {
}
stmts := p.parseStmtList()
+ p.expect(token.EOF)
if p.errors.Len() > 0 {
return nil, p.errors.Err()
}