Skip to content

(java) Highlighting fails on square brackets ([]) of array type #3678

@Elewyth

Description

@Elewyth

Describe the issue
When the return type of a method is an array type, the function name is not highlighted.

Which language seems to have the issue?
Java

Are you using highlight or highlightAuto?
hightlightAll() with class="language-java" on the <code>-block

Sample Code to Reproduce

<pre><code class="language-java">
interface FooBar {
  String foo();
  String[] bar1();
  String&#91;&#93; bar2();
}
</code></pre>

http://jsfiddle.net/Elewyth/Lxmgwosk/

Expected behavior
foo, bar1, and bar2 should all be highlighted as a function name.

Additional context
Tested with 11.7.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions