TS and JS Grammar Extension version: latest
Code
async (arg: string) => { }
async (
asg: string
) => { }
In the second case, it looks like we are parsing it as a function call instead of a function declaration.
Not sure if this is fixable or not given the complexities of multiline matches. Would it be somewhat safe to assume that async + space + paren indicates the start of an arrow function? (I know that you could define a function called async and invoke it like async (myArgs))