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 use py-tree-sitter with the grammar of this repository to parse c++/c files. However I found that the "and" keyword leads to a weird behaviour. I'm not sure if I should post it here or at py-tree-sitter. Feel free to tell me.
See this code example:
void something() {
if (some_var and some_other_var == nullptr) {
doSomething();
}
}
void something2() {
if (some_var && some_other_var == nullptr) {
doSomething();
}
}
This should lead to something similar, as the "and" keyword basically is the "&&" operator. (IIRC)
However, when capturing the if-statements' content I get these returns:
So I think the "and" keyword is not handled properly, leading the tree-sitter to assume there is a missing ";" somewhere. Its not a type_identifier at all.
The text was updated successfully, but these errors were encountered:
I use py-tree-sitter with the grammar of this repository to parse c++/c files. However I found that the "and" keyword leads to a weird behaviour. I'm not sure if I should post it here or at py-tree-sitter. Feel free to tell me.
See this code example:
This should lead to something similar, as the "and" keyword basically is the "&&" operator. (IIRC)
However, when capturing the if-statements' content I get these returns:
So I think the "and" keyword is not handled properly, leading the tree-sitter to assume there is a missing ";" somewhere. Its not a type_identifier at all.
The text was updated successfully, but these errors were encountered: