Describe the issue
The return type in method declarations is not highlighted.
Which language seems to have the issue?
Java
Are you using highlight or highlightAuto?
highlightAuto
Sample Code to Reproduce
Expected behavior
The return type Object should be highlighted with class hljs-type, as it is in variable declarations
Additional context
In methods with return type void the return type is highlighted as hljs-keyword. Although void is a keyword in Java, it represents a type and should also be highlighted as hljs-type.
Describe the issue
The return type in method declarations is not highlighted.
Which language seems to have the issue?
Java
Are you using
highlightorhighlightAuto?highlightAuto
Sample Code to Reproduce
Expected behavior
The return type
Objectshould be highlighted with classhljs-type, as it is in variable declarationsAdditional context
In methods with return type
voidthe return type is highlighted ashljs-keyword. Althoughvoidis a keyword in Java, it represents a type and should also be highlighted ashljs-type.