Small parser and ToString fixes

This commit is contained in:
2022-10-13 00:18:32 -04:00
parent c290b3a3d7
commit ae50fab159
3 changed files with 11 additions and 4 deletions

View File

@@ -101,7 +101,8 @@ func (parser *parsingOperation) parseTypeSectionMember () (
// see if value exists
if parser.token.Is(lexer.TokenKindNewline) {
parser.nextToken()
err = parser.nextToken()
if err != nil { return }
// if we have exited the member, return
if !parser.token.Is(lexer.TokenKindIndent) { return }
if parser.token.Value().(int) != 2 { return }