Skip to content

Commit c224917

Browse files
committed
Comment cleanup
1 parent d23df34 commit c224917

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/compiler/commandLineParser.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,9 @@ namespace ts {
584584

585585
/**
586586
* Tests for a path that ends in a recursive directory wildcard.
587-
* Matches **, /**, /**\/, and /**\/, but not a**b.
587+
* Matches **, \**, **\, and \**\, but not a**b.
588588
*
589-
* NOTE: used \/ in place of / above to avoid ending the comment.
589+
* NOTE: used \ in place of / above to avoid issues with multiline comments.
590590
*
591591
* Breakdown:
592592
* (^|\/) # matches either the beginning of the string or a directory separator.
@@ -597,9 +597,9 @@ namespace ts {
597597

598598
/**
599599
* Tests for a path with multiple recursive directory wildcards.
600-
* Matches **\/** and **\/a/**, but not **\/a**b.
600+
* Matches **\** and **\a\**, but not **\a**b.
601601
*
602-
* NOTE: used \/ in place of / above to avoid ending the comment.
602+
* NOTE: used \ in place of / above to avoid issues with multiline comments.
603603
*
604604
* Breakdown:
605605
* (^|\/) # matches either the beginning of the string or a directory separator.
@@ -612,9 +612,9 @@ namespace ts {
612612

613613
/**
614614
* Tests for a path containing a wildcard character in a directory component of the path.
615-
* Matches /*\/, /?/, and /a*b/, but not /a/ or /a/*.
615+
* Matches \*\, \?\, and \a*b\, but not \a\ or \a\*.
616616
*
617-
* NOTE: used \/ in place of / above to avoid ending the comment.
617+
* NOTE: used \ in place of / above to avoid issues with multiline comments.
618618
*
619619
* Breakdown:
620620
* \/ # matches a directory separator.
@@ -627,7 +627,9 @@ namespace ts {
627627

628628
/**
629629
* Matches the portion of a wildcard path that does not contain wildcards.
630-
* Matches /a of /a/*, or /a/b/c of /a/b/c/?/d.
630+
* Matches \a of \a\*, or \a\b\c of \a\b\c\?\d.
631+
*
632+
* NOTE: used \ in place of / above to avoid issues with multiline comments.
631633
*
632634
* Breakdown:
633635
* ^ # matches the beginning of the string

0 commit comments

Comments
 (0)