-
Notifications
You must be signed in to change notification settings - Fork 58
new
operator does not work well with full qualifier
#181
Comments
Can you include the language-java version that you are testing against? |
This looks like a regression, because it was fixed at some point, if I remember correctly. I will investigate. |
The regression is caused in these lines: language-java/grammars/java.cson Lines 1059 to 1062 in 47ddbb6
the constraint |
That's not correct. It does get recognised, the regex skips the first item in fully qualified class name - just need to fix that. It would be tricky to fix all of the situations - I have a tree-sitter PR that would address this issue (and bunch of others). |
It would be fixed naturally if @sadikovi If you agree type in constructor call should be rendered as type (where langs like cpp & ts do so), you can take a look at this branch at your convenience, which is come up to solve #216. It is simple enough by just doing following things:
Update: Oh, sorry for that I ignored the |
Description
Expected behavior: [What you expect to happen]
"java.io" after
new
is not recognized as part of class name. It should be separated "java", ".", "io".The text was updated successfully, but these errors were encountered: