TypeScript/tests/cases/compiler/checkJsFiles_skipDiagnostics.ts
Josh Goldberg be2eb8a2e1
Allowed comment directives to be multiline (#38228)
* Allowed comment directives to be multiline

* Added tests, and perhaps fixed a test runner bug?

* I think it's going to need a consistent variable to loop over

* Used dynamically computed indexes in verifies

* Added multiline tests

* Increased flexibility for multiline comment parsing

* Undid a couple of formatting changes; removed backslashes from multiline regexp

* Added baseline tests for multiline comment skipping

Co-authored-by: Orta Therox <orta.therox@gmail.com>
2020-05-06 13:09:29 -07:00

45 lines
455 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @fileName: a.js
var x = 0;
/// @ts-ignore
x();
/// @ts-ignore
x();
/// @ts-ignore
x(
2,
3);
// @ts-ignore
// come comment
// some other comment
// @another
x();
/* @ts-ignore */
/*another comment
that could be multiline*/
x();
/* @ts-ignore
continuing comment
that could be multiline*/
x();
// @ts-ignore: no call signature
x();