Skip to content

Request: Supporting trailiing comma for arrow function. #480

@Ailrun

Description

@Ailrun

Following https://tc39.github.io/ecma262/#sec-arrow-function-definitions,

((a, b,) => { console.log(a, b) })()

should be valid one.

However, in js2-mode, this one makes problem with syntax highlighting.

It looks like trailing comma for normal function already works by daed014, so I don't know why this arrow function one isn't supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions