@@ -424,6 +424,50 @@ class D { }\r\n\
424424 comment ( "=======\r\nclass D { }\r\n" ) ,
425425 comment ( ">>>>>>> Branch - a" ) ,
426426 finalEndOfLineState ( ts . EndOfLineState . None ) ) ;
427+
428+ testLexicalClassification (
429+ "class C {\r\n\
430+ <<<<<<< HEAD\r\n\
431+ v = 1;\r\n\
432+ ||||||| merged common ancestors\r\n\
433+ v = 3;\r\n\
434+ =======\r\n\
435+ v = 2;\r\n\
436+ >>>>>>> Branch - a\r\n\
437+ }" ,
438+ ts . EndOfLineState . None ,
439+ keyword ( "class" ) ,
440+ identifier ( "C" ) ,
441+ punctuation ( "{" ) ,
442+ comment ( "<<<<<<< HEAD" ) ,
443+ identifier ( "v" ) ,
444+ operator ( "=" ) ,
445+ numberLiteral ( "1" ) ,
446+ punctuation ( ";" ) ,
447+ comment ( "||||||| merged common ancestors\r\n v = 3;\r\n" ) ,
448+ comment ( "=======\r\n v = 2;\r\n" ) ,
449+ comment ( ">>>>>>> Branch - a" ) ,
450+ punctuation ( "}" ) ,
451+ finalEndOfLineState ( ts . EndOfLineState . None ) ) ;
452+
453+ testLexicalClassification (
454+ "<<<<<<< HEAD\r\n\
455+ class C { }\r\n\
456+ ||||||| merged common ancestors\r\n\
457+ class E { }\r\n\
458+ =======\r\n\
459+ class D { }\r\n\
460+ >>>>>>> Branch - a\r\n" ,
461+ ts . EndOfLineState . None ,
462+ comment ( "<<<<<<< HEAD" ) ,
463+ keyword ( "class" ) ,
464+ identifier ( "C" ) ,
465+ punctuation ( "{" ) ,
466+ punctuation ( "}" ) ,
467+ comment ( "||||||| merged common ancestors\r\nclass E { }\r\n" ) ,
468+ comment ( "=======\r\nclass D { }\r\n" ) ,
469+ comment ( ">>>>>>> Branch - a" ) ,
470+ finalEndOfLineState ( ts . EndOfLineState . None ) ) ;
427471 } ) ;
428472
429473 it ( "'of' keyword" , function ( ) {
0 commit comments