Skip to content

Arguments highlighted as jsArrowFunction inconsistently #1196

Open
@kevinoid

Description

@kevinoid

Requisite minimal reproducible example, formatted as plain text :

const a = () => null;
const b = ( ) => null;
const c = _ => null;
const d = (_) => null;
const e = (x) => null;
const f = (x, y) => null;

With Vim 8.1 (from vim-gtk3 2:8.1.2269-1 on Debian) empty arguments without whitespace, and a single argument named _ without parens are highlighted as jsArrowFunction while empty arguments with whitespace, a single argument named _ with parens, and one or more arguments of any other name are not, as displayed in the following screenshot:
Screenshot with Vim 2:8.1.2269-1 where arguments to a and c are colored while others are not.

Thanks for considering,
Kevin

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