Implemented block instruction parsing

This commit is contained in:
Eduard Urbach 2024-06-24 00:03:26 +02:00
parent 4fc1935183
commit dd495fab4e
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
6 changed files with 70 additions and 13 deletions

View file

@ -192,12 +192,11 @@ func scanFile(path string, functions chan<- *Function) error {
return errors.New(errors.MissingBlockStart, file, tokens[i].Position)
}
i++
if blockLevel == 0 {
break
}
i++
continue
}
@ -237,5 +236,6 @@ func scanFile(path string, functions chan<- *Function) error {
nameStart = -1
paramsStart = -1
bodyStart = -1
i++
}
}