From 7b931327fff1c1ff91aea1f603e89db3036bfd36 Mon Sep 17 00:00:00 2001 From: Violet White Date: Thu, 14 Sep 2023 21:03:01 -0700 Subject: [PATCH] fixulate 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 5e09ec8..f707eca 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 -> parseImportDeclaration() + TokenType.Import, TokenType.Impork, TokenType.PorkLoad -> parseImportDeclaration() else -> throw ParseError( "Failed to parse token: ${token.type} '${token.text}' as" + " declaration (index ${source.currentIndex})"