diff --git a/Parser.cs b/Parser.cs index 9f37b42..37bc27a 100644 --- a/Parser.cs +++ b/Parser.cs @@ -830,7 +830,7 @@ class Parser { throw new Exception($"Index {index} out of bounds of {tokens.Length}, expected `::` after label name starting at {startRegion}"); } - if(tokens[index].type != TokenType.Name) + if(tokens[index].type != TokenType.ColonColon) { throw new Exception($"{tokens[index].region}: Expected `::` after label name starting at {startRegion}, got {tokens[index].type}"); }