-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build error: character too large for enclosing character literal type #1
Comments
I've encountered this myself - if I remember correctly:
In any case, thanks for the report! Glad about your interest in this, let me know if you have more questions and/or issues! |
I fixed it by removing the character syntax: inline bool is_horizontal_whitespace(TSLexer *lexer) {
return lexer->lookahead == ' ' ||
lexer->lookahead == '\t' ||
lexer->lookahead == 0xFEFF ||
lexer->lookahead == 0x2060 ||
lexer->lookahead == 0x200B;
} |
Yeah, I don't think In more recent versions of C++, you can use a |
Very cool, thanks patrick for the fix and max for the additional insight, appreciate it! Commited in c059967 |
Running
tree-sitter test
produces the following error when compilingscanner.cc
:The text was updated successfully, but these errors were encountered: