File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -985,8 +985,7 @@ namespace ts {
985
985
return ClassificationType . bigintLiteral ;
986
986
}
987
987
else if ( tokenKind === SyntaxKind . StringLiteral ) {
988
- // TODO: GH#18217
989
- return token ! . parent . kind === SyntaxKind . JsxAttribute ? ClassificationType . jsxAttributeStringLiteralValue : ClassificationType . stringLiteral ;
988
+ return token && token . parent . kind === SyntaxKind . JsxAttribute ? ClassificationType . jsxAttributeStringLiteralValue : ClassificationType . stringLiteral ;
990
989
}
991
990
else if ( tokenKind === SyntaxKind . RegularExpressionLiteral ) {
992
991
// TODO: we should get another classification type for these literals.
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts"/>
2
+
3
+ //// <<<<<<< HEAD
4
+ //// "AAAA"
5
+ //// =======
6
+ //// "BBBB"
7
+ //// >>>>>>> Feature
8
+
9
+
10
+ var c = classification ;
11
+ verify . syntacticClassificationsAre (
12
+ c . comment ( "<<<<<<< HEAD" ) ,
13
+ c . stringLiteral ( "\"AAAA\"" ) ,
14
+ c . comment ( "=======" ) ,
15
+ c . stringLiteral ( "\"BBBB\"" ) ,
16
+ c . comment ( ">>>>>>> Feature" ) ) ;
You can’t perform that action at this time.
0 commit comments