We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1939be commit f7f95e7Copy full SHA for f7f95e7
tests/pester/Syntax.Tests.ps1
@@ -25,16 +25,20 @@ Describe "Syntax highlighting" {
25
$stIndex = 0
26
$errorCounter = 0
27
28
- $psScopes | %{
29
- while ($stScopes[$stIndex].endOffset -le $_.startOffset) {
+ foreach ($psScope in $psScopes) {
+ while ($stScopes[$stIndex].endOffset -le $psScope.startOffset) {
30
$stIndex++
31
if ($stIndex -ge $stScopes.Length) {
32
break
33
}
34
35
36
+ if ($stIndex -ge $stScopes.Length) {
37
+ # we are done with sublime scopes
38
+ break
39
+ }
40
+
41
$stScope = $stScopes[$stIndex]
- $psScope = $_
42
43
#Write-Host "PowerShell scope $psScope"
44
#Write-Host "SublimeText scope $stScope"
0 commit comments