File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6441,13 +6441,6 @@ namespace ts {
64416441 indent += asterisk . length ;
64426442 }
64436443 break ;
6444- case SyntaxKind . Identifier :
6445- // Anything else is doc comment text. We just save it. Because it
6446- // wasn't a tag, we can no longer parse a tag on this line until we hit the next
6447- // line break.
6448- pushComment ( scanner . getTokenText ( ) ) ;
6449- state = JSDocState . SavingComments ;
6450- break ;
64516444 case SyntaxKind . WhitespaceTrivia :
64526445 // only collect whitespace if we're already saving comments or have just crossed the comment indent margin
64536446 const whitespace = scanner . getTokenText ( ) ;
@@ -6462,7 +6455,9 @@ namespace ts {
64626455 case SyntaxKind . EndOfFileToken :
64636456 break loop;
64646457 default :
6465- // anything other than whitespace or asterisk at the beginning of the line starts the comment text
6458+ // Anything else is doc comment text. We just save it. Because it
6459+ // wasn't a tag, we can no longer parse a tag on this line until we hit the next
6460+ // line break.
64666461 state = JSDocState . SavingComments ;
64676462 pushComment ( scanner . getTokenText ( ) ) ;
64686463 break ;
You can’t perform that action at this time.
0 commit comments