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.

Unexpected syntax highlighting with default parameters arrow function using function/new #462

Open
@dpwrussell

Description

@dpwrussell

Version: 0.122.0

Works fine:

// Got expected syntax highlighting
const x = (y, z=1) => {};
function x(y, z=1) {}
function x(y, z=getOne()) {}
function x(y, z=new Map()) {}

// Did not get expected syntax highlighting
const x = (y, z=getOne()) => {};
const x = (y, z=new Map()) => {};

screen shot 2016-11-15 at 11 22 38

I would expect the parameters to be highlighted the same way as they are in the working examples.

Cheers

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