mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
Merge pull request #154 from 314eter/invalidtokencontents
Add error message for TSCompileErrorTypeInvalidTokenContents
This commit is contained in:
commit
89d0d1dd0e
|
|
@ -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."); }
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue