|
756 | 756 | <key>controlWords</key>
|
757 | 757 | <dict>
|
758 | 758 | <key>match</key>
|
759 |
| - <string>(\b(?<!-|\$)(?i:begin|exit|break|return|catch|finally|for|continue|foreach|throw|from|trap|try|do|if|until|in|using|else|elseif|while|end|where)\b(?!-|\.))</string> |
| 759 | + <string>(\b(?<!-|\$)(?i:begin|process|exit|break|return|catch|finally|for|continue|foreach|throw|from|trap|try|do|if|until|in|using|else|elseif|while|end|where)\b(?!-|\.))</string> |
760 | 760 | <key>name</key>
|
761 | 761 | <string>keyword.control.powershell</string>
|
762 | 762 | </dict>
|
|
1072 | 1072 | <key>reservedWords</key>
|
1073 | 1073 | <dict>
|
1074 | 1074 | <key>match</key>
|
1075 |
| - <string>(\b(?<!-|\$)(?i:configuration|node|process|enum|filter|sequence|class|data|define|function|dynamicparam|inlinescript|var|parallel|param|workflow)\b(?!-|\.))</string> |
| 1075 | + <string>(\b(?<!-|\$)(?i:configuration|node|enum|filter|sequence|class|data|define|function|dynamicparam|inlinescript|var|parallel|param|workflow)\b(?!-|\.))</string> |
1076 | 1076 | <key>name</key>
|
1077 | 1077 | <string>keyword.other.powershell</string>
|
1078 | 1078 | </dict>
|
|
1371 | 1371 | <key>comment</key>
|
1372 | 1372 | <string>Reserved words within [( )]</string>
|
1373 | 1373 | <key>match</key>
|
1374 |
| - <string>\b(?i)(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact)\b</string> |
| 1374 | + <string>\b(?i)(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact|helpmessage)\b</string> |
1375 | 1375 | <key>name</key>
|
1376 | 1376 | <string>entity.other.attribute-name.powershell</string>
|
1377 | 1377 | </dict>
|
|
1423 | 1423 | <key>comment</key>
|
1424 | 1424 | <string>Automatic variables - read-only.</string>
|
1425 | 1425 | <key>match</key>
|
1426 |
| - <string>(\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\b((\.[\w"']+)*)</string> |
| 1426 | + <string>(\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\b((\.[\w"'\- @#]+)*)</string> |
1427 | 1427 | </dict>
|
1428 | 1428 | <dict>
|
1429 | 1429 | <key>captures</key>
|
|
1457 | 1457 | <key>comment</key>
|
1458 | 1458 | <string>$var, $local:var</string>
|
1459 | 1459 | <key>match</key>
|
1460 |
| - <string>(\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\w+)(:\w+)?((\.[\w"']+)*)</string> |
| 1460 | + <string>(\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\w+)(:\w+)?((\.[\w"'\- @#]+)*)</string> |
1461 | 1461 | </dict>
|
1462 | 1462 | <dict>
|
1463 | 1463 | <key>captures</key>
|
|
1496 | 1496 | <key>comment</key>
|
1497 | 1497 | <string>${var}, ${script:var}</string>
|
1498 | 1498 | <key>match</key>
|
1499 |
| - <string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+)(\})((\.[\w"']+)*)</string> |
| 1499 | + <string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\})((\.[\w"'\- @#]+)*)</string> |
1500 | 1500 | </dict>
|
1501 | 1501 | <dict>
|
1502 | 1502 | <key>captures</key>
|
|
1611 | 1611 | <key>comment</key>
|
1612 | 1612 | <string>${var}, ${script:var}</string>
|
1613 | 1613 | <key>match</key>
|
1614 |
| - <string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+)(\})</string> |
| 1614 | + <string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\})</string> |
1615 | 1615 | </dict>
|
1616 | 1616 | <dict>
|
1617 | 1617 | <key>captures</key>
|
|
0 commit comments