-
Notifications
You must be signed in to change notification settings - Fork 98
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
Handling form feed character #117
Comments
Do you have an example of where it could choke? |
First of all, it's parsed as an error node in the parser. I remember seeing it cause some problem but I couldn't find the example now, sorry about that. I put together an example of a typical usage of form feed character in source files: put before a section header comment for delimiting sections. int main() {
return 0;
}
/* Section header */
int subr() {
return 1;
} |
Thank you! I'm a bit surprised \f & \v isn't included in \s for tree-sitter core |
The parser is awesome! However, it sometimes chokes on form feed character, which is used in source files from time to time. The grammar should treat it as whitespace.
The text was updated successfully, but these errors were encountered: