-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage
Description
Describe the issue
In a Java statement that declares and assigns a variable with a generic type, the type and variable don't get highlighted. Without the generic type they are properly highlighted.
Which language seems to have the issue?
java
Are you using highlight or highlightAuto?
highlightElement
...
Sample Code to Reproduce
Map<String, String> params = request.getParams();Expected behavior
Without the generic type, the type (Map) and variable (params) get highlighted. They should be similarly highlighted also when the generic type is present (and the generic type itself should be highlighted as well).
Additional context
The example shows two generic types, but the issue also occurs with a single type such as List. This is the proper way of defining such collections.
Metadata
Metadata
Assignees
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage