mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Ensure region boundaries are entire line
This commit is contained in:
parent
0ef5498de3
commit
4971e3152c
@ -8,8 +8,8 @@ namespace ts.OutliningElementsCollector {
|
||||
let depth = 0;
|
||||
const regions: RegionRange[] = [];
|
||||
const regionText = "#region";
|
||||
const regionStart = new RegExp("//\\s*#region(\\s+.*)?$", "gm");
|
||||
const regionEnd = new RegExp("//\\s*#endregion(\\s|$)", "gm");
|
||||
const regionStart = new RegExp("^\\s*//\\s*#region(\\s+.*)?$", "gm");
|
||||
const regionEnd = new RegExp("^\\s*//\\s*#endregion(\\s|$)", "gm");
|
||||
|
||||
walk(sourceFile);
|
||||
gatherRegions();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user