Skip to content

Commit fcce1c4

Browse files
author
James Brundage
committed
[CommandAst].AsSentance - continuing when [switch] statements are encountered. (re #242)
1 parent 07fdf4f commit fcce1c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Types/CommandAST/AsSentence.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ foreach ($potentialCommand in $potentialCommands) {
289289
}
290290
}
291291
$currentParameter = '' # and clear the current parameter.
292-
$currentClause = @()
292+
$currentClause = @()
293+
$commandElementIndex--
294+
continue
293295
}
294296

295297

@@ -381,4 +383,4 @@ foreach ($potentialCommand in $potentialCommands) {
381383

382384
$sentence
383385

384-
}
386+
}

0 commit comments

Comments
 (0)