-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
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
Object get() { ... }
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.