Parser no longer returns io.EOF when done parsing
This commit is contained in:
parent
ccc303d93c
commit
15fa122547
@ -74,6 +74,8 @@ func Fetch (modulePath string, skim bool) (tree SyntaxTree, err error) {
|
||||
|
||||
// parse the tokens into the module
|
||||
err = parser.parse(sourceFile)
|
||||
if err == io.EOF { err = nil}
|
||||
if err != nil { return }
|
||||
}
|
||||
|
||||
tree = parser.tree
|
||||
|
Reference in New Issue
Block a user