diff --git a/parser/src/main/kotlin/gay/pizza/pork/parser/TokenTypeProperty.kt b/parser/src/main/kotlin/gay/pizza/pork/parser/TokenTypeProperty.kt index 3bd3228..fe0fa62 100644 --- a/parser/src/main/kotlin/gay/pizza/pork/parser/TokenTypeProperty.kt +++ b/parser/src/main/kotlin/gay/pizza/pork/parser/TokenTypeProperty.kt @@ -17,9 +17,10 @@ interface TokenTypeProperty { break } } + if (upgraded == null) { - for(item in TokenType.AnyOf) { - if(item.anyOf != null && item.anyOf.strings.contains(token.text)) { + for (item in TokenType.AnyOf) { + if (item.anyOf != null && item.anyOf.strings.contains(token.text)) { upgraded = Token(item, token.start, token.text) break }