File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,15 @@ $ArgumentList
6262begin {
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}
You can’t perform that action at this time.
0 commit comments