Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
3b135ac9
Commit
3b135ac9
authored
Jul 20, 2023
by
Jeffrey Morgan
Browse files
parser: fix case where multi line string termination error wouldnt show
parent
e6bae8d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
parser/parser.go
parser/parser.go
+0
-4
No files found.
parser/parser.go
View file @
3b135ac9
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment