Skip to content

(Go) Method Highlighting #4196

Open
Open
@RickoNoNo3

Description

Describe the issue
Just see the screenshot, methods of structs have different highlighting to simple functions.

Which language seems to have the issue?

Go

Are you using highlight or highlightAuto?

hljs.highlightAll();

Sample Code to Reproduce

<pre><code>func deferFunc(err *error)</code></pre>
<br>
<pre><code>func (c *exec.Cmd) Run() error</code></pre>

Expected behavior
Highlighting to method names just like function names.

Additional context
image

image

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