Skip to content

Document highlights on async/await keywords should highlight other oc… #23923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2018

Conversation

Zzzen
Copy link
Contributor

@Zzzen Zzzen commented May 6, 2018

…currences in the same body fix #22944

Fixes #22944

@msftclas
Copy link

msftclas commented May 6, 2018

CLA assistant check
All CLA requirements met.

//// await 300;
////}

verify.rangesAreOccurrences(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this.

pushKeywordIf(keywords, node.getFirstToken(), SyntaxKind.AwaitKeyword);
}
// Do not cross function boundaries.
if (!isFunctionLike(node)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&& !isClassLike(node) && !isInterfaceDeclaration(node) && !isModuleDeclaration(node) && !isTypeAliasDeclaration(node) && !isTypeNode(node)

@mhegazy
Copy link
Contributor

mhegazy commented May 9, 2018

thanks!

@mhegazy mhegazy merged commit 6f9dc2f into microsoft:master May 9, 2018
@mhegazy
Copy link
Contributor

mhegazy commented May 9, 2018

@Zzzen wanna also add support for yield in generators?

@Zzzen
Copy link
Contributor Author

Zzzen commented May 10, 2018

haha, i will try

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document highlights on async/await keywords should highlight other occurrences in the same body
3 participants