2017-08-22 00:39:58 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
2017-08-22 22:59:02 +02:00
|
|
|
////// region without label
|
2017-08-22 00:39:58 +02:00
|
|
|
////[|// #region
|
|
|
|
////
|
|
|
|
////// #endregion|]
|
|
|
|
////
|
2017-09-16 00:33:34 +02:00
|
|
|
////// region without label with trailing spaces
|
|
|
|
////[|// #region
|
|
|
|
////
|
|
|
|
////// #endregion|]
|
|
|
|
////
|
2017-08-22 00:39:58 +02:00
|
|
|
////// region with label
|
|
|
|
////[|// #region label1
|
|
|
|
////
|
|
|
|
////// #endregion|]
|
|
|
|
////
|
|
|
|
////// region with extra whitespace in all valid locations
|
2017-08-22 21:59:47 +02:00
|
|
|
//// [|// #region label2 label3
|
2017-08-22 00:39:58 +02:00
|
|
|
////
|
|
|
|
//// // #endregion|]
|
|
|
|
////
|
|
|
|
////// No space before directive
|
|
|
|
////[|//#region label4
|
|
|
|
////
|
|
|
|
//////#endregion|]
|
|
|
|
////
|
|
|
|
////// Nested regions
|
|
|
|
////[|// #region outer
|
|
|
|
////
|
|
|
|
////[|// #region inner
|
|
|
|
////
|
|
|
|
////// #endregion inner|]
|
|
|
|
////
|
|
|
|
////// #endregion outer|]
|
|
|
|
////
|
2017-08-22 22:59:02 +02:00
|
|
|
////// region delimiters not valid when there is preceding text on line
|
2017-08-22 00:39:58 +02:00
|
|
|
//// test // #region invalid1
|
|
|
|
////
|
|
|
|
////test // #endregion
|
|
|
|
////
|
|
|
|
////// region delimiters not valid when in multiline comment
|
|
|
|
/////*
|
|
|
|
////// #region invalid2
|
|
|
|
////*/
|
|
|
|
////
|
|
|
|
/////*
|
|
|
|
////// #endregion
|
|
|
|
////*/
|
|
|
|
|
2018-05-04 01:28:55 +02:00
|
|
|
verify.outliningSpansInCurrentFile(test.ranges(), "region");
|