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
Description
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()) => {};
I would expect the parameters to be highlighted the same way as they are in the working examples.
Cheers