mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
fix(48851): exclude in from document highlights (#48853)
This commit is contained in:
@@ -93,6 +93,8 @@ namespace ts {
|
||||
return highlightSpans(getAsyncAndAwaitOccurrences(node));
|
||||
case SyntaxKind.YieldKeyword:
|
||||
return highlightSpans(getYieldOccurrences(node));
|
||||
case SyntaxKind.InKeyword:
|
||||
return undefined;
|
||||
default:
|
||||
return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent))
|
||||
? highlightSpans(getModifierOccurrences(node.kind, node.parent))
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export type Foo<T> = {
|
||||
//// [K [|in|] keyof T]: any;
|
||||
////}
|
||||
////
|
||||
////"a" [|in|] {};
|
||||
////
|
||||
////for (let a [|in|] {}) {}
|
||||
|
||||
for (let range of test.ranges()) {
|
||||
verify.noDocumentHighlights(range);
|
||||
}
|
||||
Reference in New Issue
Block a user