Merge pull request #154 from 314eter/invalidtokencontents

Add error message for TSCompileErrorTypeInvalidTokenContents
This commit is contained in:
Max Brunsfeld 2018-03-30 12:32:33 -07:00 committed by GitHub
commit 89d0d1dd0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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