recognize Jsx attribute in syntactic classifier
This commit is contained in:
parent
9b151b3090
commit
c5131e6730
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue