recognize Jsx attribute in syntactic classifier

This commit is contained in:
Vladimir Matveev 2016-01-08 14:44:07 -08:00
parent 9b151b3090
commit c5131e6730

View file

@ -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 ((<JsxAttribute>token.parent).name === token) {
return ClassificationType.jsxAttribute;
}
}
}
return ClassificationType.identifier;
}
}