parser: fix case where multi line string termination error wouldnt show
This commit is contained in:
parent
e6bae8d916
commit
3b135ac963
1 changed files with 0 additions and 4 deletions
|
@ -62,10 +62,6 @@ func Parse(reader io.Reader) ([]Command, error) {
|
|||
}
|
||||
|
||||
func scanModelfile(data []byte, atEOF bool) (advance int, token []byte, err error) {
|
||||
if atEOF || len(data) == 0 {
|
||||
return 0, nil, nil
|
||||
}
|
||||
|
||||
newline := bytes.IndexByte(data, '\n')
|
||||
|
||||
if start := bytes.Index(data, []byte(`"""`)); start >= 0 && start < newline {
|
||||
|
|
Loading…
Reference in a new issue