Manifest healing on parser.kt

This commit is contained in:
Violet White 2023-09-14 21:28:27 -07:00
parent e56e815f06
commit cde672244a

View File

@ -155,7 +155,7 @@ class Parser(source: TokenSource, attribution: NodeAttribution) :
override fun parseDeclaration(): Declaration = guarded {
val token = peek()
return@guarded when (token.type) {
TokenType.Import, TokenType.Impork, TokenType.PorkLoad -> parseImportDeclaration()
TokenType.Import -> parseImportDeclaration()
else -> throw ParseError(
"Failed to parse token: ${token.type} '${token.text}' as" +
" declaration (index ${source.currentIndex})"