Skip to content

JavaScript - first property value containing object method is wrongly highlighted #3787

Open
@miragecraft

Description

@miragecraft

Information

  • Language: JavaScript
  • Plugins: none

Verified broken on the test page.

Description
Inside an object, if the value of the first property contains a object method, the object name is highlighted as if it's a function.

Code snippet

Test page

The code being highlighted incorrectly.
let handler = {
  apply: f.apply(), // <- "f" is highlighted wrong
  get: f.get(),
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions