Skip to content

Commit d40d14f

Browse files
authored
Merge pull request #12 from gravejester/master
Bug fixes. Fix #9 Fix #10 Fix #11
2 parents 4f97249 + d605150 commit d40d14f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@
756756
<key>controlWords</key>
757757
<dict>
758758
<key>match</key>
759-
<string>(\b(?&lt;!-|\$)(?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(?&lt;!-|\$)(?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>
760760
<key>name</key>
761761
<string>keyword.control.powershell</string>
762762
</dict>
@@ -1072,7 +1072,7 @@
10721072
<key>reservedWords</key>
10731073
<dict>
10741074
<key>match</key>
1075-
<string>(\b(?&lt;!-|\$)(?i:configuration|node|process|enum|filter|sequence|class|data|define|function|dynamicparam|inlinescript|var|parallel|param|workflow)\b(?!-|\.))</string>
1075+
<string>(\b(?&lt;!-|\$)(?i:configuration|node|enum|filter|sequence|class|data|define|function|dynamicparam|inlinescript|var|parallel|param|workflow)\b(?!-|\.))</string>
10761076
<key>name</key>
10771077
<string>keyword.other.powershell</string>
10781078
</dict>
@@ -1371,7 +1371,7 @@
13711371
<key>comment</key>
13721372
<string>Reserved words within [( )]</string>
13731373
<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>
13751375
<key>name</key>
13761376
<string>entity.other.attribute-name.powershell</string>
13771377
</dict>
@@ -1423,7 +1423,7 @@
14231423
<key>comment</key>
14241424
<string>Automatic variables - read-only.</string>
14251425
<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>
14271427
</dict>
14281428
<dict>
14291429
<key>captures</key>
@@ -1457,7 +1457,7 @@
14571457
<key>comment</key>
14581458
<string>$var, $local:var</string>
14591459
<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>
14611461
</dict>
14621462
<dict>
14631463
<key>captures</key>
@@ -1496,7 +1496,7 @@
14961496
<key>comment</key>
14971497
<string>${var}, ${script:var}</string>
14981498
<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>
15001500
</dict>
15011501
<dict>
15021502
<key>captures</key>
@@ -1611,7 +1611,7 @@
16111611
<key>comment</key>
16121612
<string>${var}, ${script:var}</string>
16131613
<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>
16151615
</dict>
16161616
<dict>
16171617
<key>captures</key>

0 commit comments

Comments
 (0)