|
18 | 18 | $token = $_ |
19 | 19 | $prevEnd = $_.PreviousToken.Start + $_.PreviousToken.Length |
20 | 20 | $substring = $_.Text.Substring($prevEnd, $token.Start - $prevEnd) |
21 | | - if ($substring) { $substring} else { ''} |
| 21 | + if ($substring) { $substring} else { '' } |
22 | 22 | </ScriptBlock> |
23 | 23 | </ExpressionBinding> |
24 | 24 | <ExpressionBinding> |
|
68 | 68 | <ExpressionBinding> |
69 | 69 | <ItemSelectionCondition> |
70 | 70 | <ScriptBlock> |
71 | | - $_.Type -in 'Keyword', 'String' |
| 71 | + $_.Type -in 'Keyword', 'String', 'CommandArgument' |
72 | 72 | </ScriptBlock> |
73 | 73 | </ItemSelectionCondition> |
74 | 74 | <PropertyName>Content</PropertyName> |
|
85 | 85 | $_.Type -in 'Variable', 'Command' |
86 | 86 | </ScriptBlock> |
87 | 87 | </ItemSelectionCondition> |
88 | | - <ScriptBlock> |
89 | | - $_.Content |
90 | | - </ScriptBlock> |
| 88 | + <PropertyName>Content</PropertyName> |
91 | 89 | </ExpressionBinding> |
92 | 90 | <ExpressionBinding> |
93 | 91 | <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Warning' ) -join ''</ScriptBlock> |
94 | 92 | </ExpressionBinding> |
95 | 93 | <ExpressionBinding> |
96 | | - <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Blue' -NoClear) -join ''</ScriptBlock> |
| 94 | + <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Magenta' -NoClear) -join ''</ScriptBlock> |
| 95 | + </ExpressionBinding> |
| 96 | + <ExpressionBinding> |
| 97 | + <ItemSelectionCondition> |
| 98 | + <ScriptBlock> |
| 99 | + $_.Type -in 'CommandParameter' |
| 100 | + </ScriptBlock> |
| 101 | + </ItemSelectionCondition> |
| 102 | + <PropertyName>Content</PropertyName> |
| 103 | + </ExpressionBinding> |
| 104 | + <ExpressionBinding> |
| 105 | + <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Magenta' ) -join ''</ScriptBlock> |
| 106 | + </ExpressionBinding> |
| 107 | + <ExpressionBinding> |
| 108 | + <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Magenta' -NoClear) -join ''</ScriptBlock> |
97 | 109 | </ExpressionBinding> |
98 | 110 | <ExpressionBinding> |
99 | 111 | <ItemSelectionCondition> |
|
104 | 116 | <PropertyName>Content</PropertyName> |
105 | 117 | </ExpressionBinding> |
106 | 118 | <ExpressionBinding> |
107 | | - <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Blue' ) -join ''</ScriptBlock> |
| 119 | + <ScriptBlock>@(& ${PipeScript_Format-RichText} -ForegroundColor 'Magenta' ) -join ''</ScriptBlock> |
108 | 120 | </ExpressionBinding> |
109 | 121 | <ExpressionBinding> |
110 | 122 | <ItemSelectionCondition> |
111 | 123 | <ScriptBlock> |
112 | | - $_.Type -notin 'Comment', 'GroupStart', 'GroupEnd', 'Variable', 'Operator', 'Command','Keyword', 'String' |
| 124 | + $_.Type -notin 'Comment', |
| 125 | + 'Keyword', 'String', 'CommandArgument', |
| 126 | + 'Variable', 'Command', |
| 127 | + 'CommandParameter', |
| 128 | + 'Operator','GroupStart', 'GroupEnd' |
113 | 129 | </ScriptBlock> |
114 | 130 | </ItemSelectionCondition> |
115 | 131 | <PropertyName>Content</PropertyName> |
|
0 commit comments