Fixed type section parsing at EOF
This commit is contained in:
parent
b2fadd2fd3
commit
3662b2e298
@ -34,7 +34,8 @@ func (parser *parsingOperation) parseTypeSection () (
|
|||||||
|
|
||||||
// see if value exists
|
// see if value exists
|
||||||
if parser.token.Is(lexer.TokenKindNewline) {
|
if parser.token.Is(lexer.TokenKindNewline) {
|
||||||
parser.nextToken()
|
err = parser.nextToken()
|
||||||
|
if err != nil { return }
|
||||||
// if we have exited the section, return
|
// if we have exited the section, return
|
||||||
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 }
|
||||||
|
@ -35,5 +35,6 @@ type ro iIntArrayInit:Int:3
|
|||||||
923
|
923
|
||||||
92
|
92
|
||||||
)
|
)
|
||||||
|
type ro jAtEnd:Int
|
||||||
`, test)
|
`, test)
|
||||||
}
|
}
|
||||||
|
@ -34,3 +34,5 @@ type ro hIntArray:{Int ..}
|
|||||||
|
|
||||||
type ro iIntArrayInit:Int:3
|
type ro iIntArrayInit:Int:3
|
||||||
(3298 923 92)
|
(3298 923 92)
|
||||||
|
|
||||||
|
type ro jAtEnd:Int
|
||||||
|
Reference in New Issue
Block a user