File tree 1 file changed +22
-6
lines changed
XtractQuery/Logic.Domain.CodeAnalysis/Logic.Domain.CodeAnalysis/Level5
1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -255,16 +255,32 @@ private Level5SyntaxToken ReadTriviaAndComments()
255
255
switch ( character )
256
256
{
257
257
case '/' :
258
- if ( ! IsPeekedChar ( 1 , '/' ) )
259
- break ;
258
+ if ( IsPeekedChar ( 1 , '/' ) )
259
+ {
260
+ _sb . Append ( ReadChar ( ) ) ;
261
+ _sb . Append ( ReadChar ( ) ) ;
260
262
261
- _sb . Append ( ReadChar ( ) ) ;
262
- _sb . Append ( ReadChar ( ) ) ;
263
+ while ( ! IsPeekedChar ( ' \n ' ) )
264
+ _sb . Append ( ReadChar ( ) ) ;
263
265
264
- while ( ! IsPeekedChar ( '\n ' ) )
266
+ continue ;
267
+ }
268
+
269
+ if ( IsPeekedChar ( 1 , '*' ) )
270
+ {
271
+ _sb . Append ( ReadChar ( ) ) ;
265
272
_sb . Append ( ReadChar ( ) ) ;
266
273
267
- continue ;
274
+ while ( ! IsPeekedChar ( '*' ) || ! IsPeekedChar ( 1 , '/' ) )
275
+ _sb . Append ( ReadChar ( ) ) ;
276
+
277
+ _sb . Append ( ReadChar ( ) ) ;
278
+ _sb . Append ( ReadChar ( ) ) ;
279
+
280
+ continue ;
281
+ }
282
+
283
+ break ;
268
284
269
285
case ' ' :
270
286
case '\t ' :
You can’t perform that action at this time.
0 commit comments