diff --git a/src/services/services.ts b/src/services/services.ts index 61dc342f9f0..2c8982f10ea 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1640,6 +1640,7 @@ namespace ts { jsxOpenTagName = 19, jsxCloseTagName = 20, jsxSelfClosingTagName = 21, + jsxAttribute = 22 } /// Language Service @@ -6903,9 +6904,12 @@ namespace ts { return ClassificationType.jsxSelfClosingTagName; } return; + case SyntaxKind.JsxAttribute: + if ((token.parent).name === token) { + return ClassificationType.jsxAttribute; + } } } - return ClassificationType.identifier; } }