Skip to content

Commit 87c579d

Browse files
author
James Brundage
committed
Inline Batch support: improving inner docs (re #198)
1 parent 929fa02 commit 87c579d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Transpilers/Inline/Inline.Batch.psx.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,15 @@ $ArgumentList
6262
begin {
6363
# We start off by declaring a number of regular expressions:
6464
$startComment = '(?>(?>\:\:|rem)\s{0,}(?:PipeScript)?\s{0,}\{)'
65-
$endComment = '(?>(?>\:\:|rem)\s{0,}(?:PipeScript)?\s{0,}\})'
66-
# * StartRegex ```$StartComment + '{' + $Whitespace```
65+
$endComment = '(?>(?>\:\:|rem)\s{0,}(?:PipeScript)?\s{0,}\})'
6766
$startRegex = "(?<PSStart>${startComment})"
68-
# * EndRegex ```$whitespace + '}' + $EndComment```
6967
$endRegex = "(?<PSEnd>${endComment})"
7068

7169
# Create a splat containing arguments to the core inline transpiler
7270
$Splat = [Ordered]@{
7371
StartPattern = $startRegex
7472
EndPattern = $endRegex
73+
# Using -LinePattern will skip any inline code not starting with :: or rem.
7574
LinePattern = "^\s{0,}(?>\:\:|rem)\s{0,}"
7675
}
7776
}

0 commit comments

Comments
 (0)