From cde672244a4a243c33d37fd3b654692a3ce8cda7 Mon Sep 17 00:00:00 2001 From: Violet White Date: Thu, 14 Sep 2023 21:28:27 -0700 Subject: [PATCH] Manifest healing on parser.kt --- parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt b/parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt index bc0d1c6..56114c5 100644 --- a/parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt +++ b/parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt @@ -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})"