This commit is contained in:
parent
f6eb30e460
commit
031edd2ffe
9 changed files with 102 additions and 3 deletions
|
@ -41,6 +41,7 @@ func (s *scanner) scanFile(path string, pkg string) error {
|
|||
return nil
|
||||
case token.Invalid:
|
||||
return errors.New(&InvalidCharacter{Character: tokens[i].String(file.Bytes)}, file, tokens[i].Position)
|
||||
case token.Script:
|
||||
default:
|
||||
return errors.New(&InvalidTopLevel{Instruction: tokens[i].String(file.Bytes)}, file, tokens[i].Position)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue