diff --git a/src/compiler/prepare_grammar/expand_tokens.cc b/src/compiler/prepare_grammar/expand_tokens.cc index 48396540..82fb9302 100644 --- a/src/compiler/prepare_grammar/expand_tokens.cc +++ b/src/compiler/prepare_grammar/expand_tokens.cc @@ -72,7 +72,7 @@ ExpandTokenResult expand_token(const rules::Rule &rule) { return Rule(rules::Choice{elements}); }, - [](auto) { return CompileError(TSCompileErrorTypeInvalidTokenContents, ""); } + [](auto) { return CompileError(TSCompileErrorTypeInvalidTokenContents, "Symbols inside tokens are not allowed."); } ); };