Skip to content

Broken syntax when using function type as a function argument #71

Open
@tomaskallup

Description

@tomaskallup

It's really hard to describe for me, so here are pictures:
Without typing resolve argument (proper highlight):
screen shot 2018-09-05 at 22 32 37
Syntax groups at the const validationResult....:
['typescriptClassBlock', 'typescriptBlock', 'typescriptFuncCallArg', 'typescriptBlock', 'typescriptVariable']

With typing the resolve as a function (broken highlight after void):
screen shot 2018-09-05 at 22 32 48
Syntax groups at the const validationResult....:
['typescriptClassBlock', 'typescriptBlock', 'typescriptFuncCallArg', 'typescriptObjectLiteral', 'typescriptObjectL abel']

The typescriptBlock seems to break after void) => { and it starts to thinks it's a object literal. I would fix this, but I'm not sure where to look.

EDIT: It's the second arrow (=>) which breaks, it looses typescriptArrowFuncDef for some reason... the space right before it still has it

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions