File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
tests/cases/unittests/services Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,27 @@ describe('Colorization', function () {
155
155
finalEndOfLineState ( ts . EndOfLineState . InMultiLineCommentTrivia ) ) ;
156
156
} ) ;
157
157
158
+ it ( "correctly classifies the termination of a multiline comment" , function ( ) {
159
+ test ( " */ " ,
160
+ ts . EndOfLineState . InMultiLineCommentTrivia ,
161
+ comment ( " */" ) ,
162
+ finalEndOfLineState ( ts . EndOfLineState . Start ) ) ;
163
+ } ) ;
164
+
165
+ it ( "correctly classifies the continuation of a multiline comment" , function ( ) {
166
+ test ( "LOREM IPSUM DOLOR " ,
167
+ ts . EndOfLineState . InMultiLineCommentTrivia ,
168
+ comment ( "LOREM IPSUM DOLOR " ) ,
169
+ finalEndOfLineState ( ts . EndOfLineState . InMultiLineCommentTrivia ) ) ;
170
+ } ) ;
171
+
172
+ it ( "correctly classifies an unterminated multiline comment on a line ending in '/*/'" , function ( ) {
173
+ test ( " /*/" ,
174
+ ts . EndOfLineState . Start ,
175
+ comment ( "/*/" ) ,
176
+ finalEndOfLineState ( ts . EndOfLineState . InMultiLineCommentTrivia ) ) ;
177
+ } ) ;
178
+
158
179
it ( "classifies correctly an unterminated multiline comment with trailing space" , function ( ) {
159
180
test ( "/* " ,
160
181
ts . EndOfLineState . Start ,
You can’t perform that action at this time.
0 commit comments