Add error message for TSCompileErrorTypeInvalidTokenContents

This commit is contained in:
Pieter Goetschalckx 2018-03-30 21:12:09 +02:00
parent dbe77e7199
commit 3d0ca31cf1

View file

@ -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."); }
);
};