File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
tests/cases/unittests/services Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,6 @@ module ts {
659
659
InMultiLineCommentTrivia ,
660
660
InSingleQuoteStringLiteral ,
661
661
InDoubleQuoteStringLiteral ,
662
- EndingWithKeyword ,
663
662
EndingWithDotToken ,
664
663
}
665
664
@@ -2243,9 +2242,6 @@ module ts {
2243
2242
case EndOfLineState . EndingWithDotToken :
2244
2243
lastToken = SyntaxKind . DotToken ;
2245
2244
break ;
2246
- case EndOfLineState . EndingWithKeyword :
2247
- lastToken = SyntaxKind . FirstKeyword ;
2248
- break ;
2249
2245
}
2250
2246
2251
2247
var result : ClassificationResult = {
@@ -2264,7 +2260,7 @@ module ts {
2264
2260
token = SyntaxKind . RegularExpressionLiteral ;
2265
2261
}
2266
2262
}
2267
- else if ( isKeyword ( token ) && ( isKeyword ( lastToken ) || lastToken === SyntaxKind . DotToken ) ) {
2263
+ else if ( lastToken === SyntaxKind . DotToken ) {
2268
2264
token = SyntaxKind . Identifier ;
2269
2265
}
2270
2266
@@ -2316,9 +2312,6 @@ module ts {
2316
2312
else if ( token === SyntaxKind . DotToken ) {
2317
2313
result . finalLexState = EndOfLineState . EndingWithDotToken ;
2318
2314
}
2319
- else if ( isKeyword ( token ) ) {
2320
- result . finalLexState = EndOfLineState . EndingWithKeyword ;
2321
- }
2322
2315
}
2323
2316
}
2324
2317
Original file line number Diff line number Diff line change @@ -222,16 +222,6 @@ describe('Colorization', function () {
222
222
verifyClassification ( results . tuples [ 2 ] , 3 , ts . TokenClass . Identifier ) ;
223
223
} ) ;
224
224
225
- it ( "classifies keyword after a keyword" , function ( ) {
226
- var results = getClassifications ( "module string" , ts . EndOfLineState . Start ) ;
227
- verifyClassification ( results . tuples [ 2 ] , 6 , ts . TokenClass . Identifier ) ;
228
- } ) ;
229
-
230
- it ( "reports correct state with a line ending in a keyword" , function ( ) {
231
- var results = getClassifications ( "module" , ts . EndOfLineState . Start ) ;
232
- assert . equal ( results . finalEndOfLineState , ts . EndOfLineState . EndingWithKeyword ) ;
233
- } ) ;
234
-
235
225
it ( "classifies keyword after a dot on previous line" , function ( ) {
236
226
var results = getClassifications ( "var" , ts . EndOfLineState . EndingWithDotToken ) ;
237
227
You can’t perform that action at this time.
0 commit comments