Implemented block instruction parsing
This commit is contained in:
parent
a9d43a8716
commit
121f77fe76
6 changed files with 70 additions and 13 deletions
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue