Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

"async" keyword in arrow notation is incorrect #1187

Open
sumanthratna opened this issue Mar 31, 2019 · 0 comments
Open

"async" keyword in arrow notation is incorrect #1187

sumanthratna opened this issue Mar 31, 2019 · 0 comments

Comments

@sumanthratna
Copy link

sumanthratna commented Mar 31, 2019

Suppose I have the function:

void fetchActive() async =>
      _myPrivateVar = await API.fetchPrivateVar();

The async keyword is highlighted in blue as if it is a function name. However, when using:

void fetchActive() async {
      _myPrivateVar = await API.fetchPrivateVar();
}

The async keyword is highlighted correctly in purple. Interestingly, the same issue occurs in GitHub's markdown, so perhaps I'm missing something?

Note: I am using Flutter, but I don't think it should make a difference.

EDIT: making a change to this regex might fix things.

@sumanthratna sumanthratna changed the title async keyword in arrow notation is incorrect "async" keyword in arrow notation is incorrect Mar 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant