Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Invalid Highlighting after Capital Function if doesn't have a parent object or "new" keyword #431

Open
@JonathanWolfe

Description

@JonathanWolfe

[Title isn't the most clear, but it's the best I could come up with.]

If a function that starts with a capital letter doesn't have a parent object (window) or a keyword (new) then most tokens afterwards will be mislabeled.

Examples

These screenshots are from the One Dark theme (brownish background) and the Oceanic Next theme (blueish background). The same results can be seen with just about any theme that's not One Dark/Light.

No parent or keyword on constructor

2016-09-13 16_03_11-dashboard-tile js c__repos_omneo-ui atom
2016-09-13 16_03_57-dashboard-tile js c__repos_omneo-ui atom

With parent object

2016-09-13 16_04_24-dashboard-tile js c__repos_omneo-ui atom
2016-09-13 16_04_48-dashboard-tile js c__repos_omneo-ui atom

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