From 3d0ca31cf1022ee9a4fe3bc931bdb19d74089d57 Mon Sep 17 00:00:00 2001 From: Pieter Goetschalckx <3.14.e.ter@gmail.com> Date: Fri, 30 Mar 2018 21:12:09 +0200 Subject: [PATCH] Add error message for TSCompileErrorTypeInvalidTokenContents --- src/compiler/prepare_grammar/expand_tokens.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); } ); };