parser-skim #5

Merged
sashakoshka merged 7 commits from parser-skim into main 2022-09-05 13:23:14 -06:00
Showing only changes of commit d6db27ccb6 - Show all commits

View File

@ -32,6 +32,13 @@ func (parser *ParsingOperation) parseFuncSection () (
err = parser.parseFuncArguments(&section)
if err != nil { return }
// skip the rest of the section if we are only skimming it
if parser.skimming {
section.external = true
err = parser.skipIndentLevel(1)
return
}
// check to see if the function is external
if !parser.token.Is(lexer.TokenKindIndent) { return }
if parser.token.Value().(int) != 1 { return }