@@ -4902,8 +4902,8 @@ module ts {
49024902 var text = sourceFile . text ;
49034903 var ch = text . charCodeAt ( start ) ;
49044904
4905- // for the <<<<<<< and >>>>>>> markers, we just add them as in as
4906- // comments in the classification stream.
4905+ // for the <<<<<<< and >>>>>>> markers, we just add them in as comments
4906+ // in the classification stream.
49074907 if ( ch === CharacterCodes . lessThan || ch === CharacterCodes . greaterThan ) {
49084908 result . push ( {
49094909 textSpan : createTextSpan ( start , width ) ,
@@ -4915,13 +4915,13 @@ module ts {
49154915 // for the ======== add a comment for the first line, and then lex all
49164916 // subsequent lines up until the end of the conflict marker.
49174917 Debug . assert ( ch === CharacterCodes . equals ) ;
4918- classifyDisabledCode ( text , start , end ) ;
4918+ classifyDisabledMergeCode ( text , start , end ) ;
49194919 }
49204920 }
49214921 }
49224922 }
49234923
4924- function classifyDisabledCode ( text : string , start : number , end : number ) {
4924+ function classifyDisabledMergeCode ( text : string , start : number , end : number ) {
49254925 // Classify the line that the ======= marker is on as a comment. Then just lex
49264926 // all further tokens and add them to the result.
49274927 for ( var i = start ; i < end ; i ++ ) {
@@ -4969,6 +4969,9 @@ module ts {
49694969 }
49704970 }
49714971
4972+ // for accurate classification, the actual token should be passed in. however, for
4973+ // cases like 'disabled merge code' classification, we just get the token kind and
4974+ // classify based on that instead.
49724975 function classifyTokenType ( tokenKind : SyntaxKind , token ?: Node ) : string {
49734976 if ( isKeyword ( tokenKind ) ) {
49744977 return ClassificationTypeNames . keyword ;
0 commit comments