You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all the tree-sitter docs if it relates to using the parser
I have searched the existing issues of tree-sitter-cpp
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
When splitting identifiers across multiple lines tree-sitter fails to parse them, see the example code below. (As far as I know this is technically valid C++~)
Observe the "ERROR" node in the declaration [1, 0] - [9, 2]
Expected Behavior/Parse Tree
As far as I know this is valid C++ code and all three major compilers compile it without any warning, I would have expected tree-sitter being able to parse it.
Repro
// https://godbolt.org/z/z5Mjjhnq1extern"C" {
static
i\
n\
t
FOO\
Ba\
r
=
3;
intqux();
intqux() {
return FOOBar;
}
}
The text was updated successfully, but these errors were encountered:
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
When splitting identifiers across multiple lines tree-sitter fails to parse them, see the example code below. (As far as I know this is technically valid C++~)
Steps To Reproduce/Bad Parse Tree
declaration [1, 0] - [9, 2]
Expected Behavior/Parse Tree
As far as I know this is valid C++ code and all three major compilers compile it without any warning, I would have expected tree-sitter being able to parse it.
Repro
The text was updated successfully, but these errors were encountered: