Function root blocks are now skimmed over
This commit is contained in:
parent
ae0166b509
commit
d6db27ccb6
@ -32,6 +32,13 @@ func (parser *ParsingOperation) parseFuncSection () (
|
|||||||
err = parser.parseFuncArguments(§ion)
|
err = parser.parseFuncArguments(§ion)
|
||||||
if err != nil { return }
|
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
|
// check to see if the function is external
|
||||||
if !parser.token.Is(lexer.TokenKindIndent) { return }
|
if !parser.token.Is(lexer.TokenKindIndent) { return }
|
||||||
if parser.token.Value().(int) != 1 { return }
|
if parser.token.Value().(int) != 1 { return }
|
||||||
|
Reference in New Issue
Block a user