Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add snippets, update syntax def

  • Loading branch information...
commit 723b8d1baf1377fb58cb3fc6f5c17ed809e0b092 1 parent d84d3fe
@guillermooo guillermooo authored
View
7 Snippets/(catch) catch {...}.sublime-snippet
@@ -0,0 +1,7 @@
+<snippet>
+ <content><![CDATA[catch ${1:[Exception]}{
+ $2
+}$0]]></content>
+ <tabTrigger>catch</tabTrigger>
+ <scope>source.powershell</scope>
+</snippet>
View
7 Snippets/(fin) finally {...}.sublime-snippet
@@ -0,0 +1,7 @@
+<snippet>
+ <content><![CDATA[finally {
+ $1
+}$0]]></content>
+ <tabTrigger>fin</tabTrigger>
+ <scope>source.powershell</scope>
+</snippet>
View
7 Snippets/(try) try {...}.sublime-snippet
@@ -0,0 +1,7 @@
+<snippet>
+ <content><![CDATA[try {
+ $1
+}$0]]></content>
+ <tabTrigger>try</tabTrigger>
+ <scope>source.powershell</scope>
+</snippet>
View
2  Support/PowershellSyntax.JSON-tmLanguage
@@ -133,7 +133,7 @@
"name": "support.function.powershell"
},
{
- "match": "\\b(?i:if|else|elseif|switch|while|default|for|do|until|break|continue|foreach|return|filter|in|trap|throw|param|begin|process|end|function|global|local|private|script|contained)\\b",
+ "match": "\\b(?i:if|else|elseif|switch|while|default|try|finally|catch|for|do|until|break|continue|foreach|return|filter|in|trap|throw|param|begin|process|end|function|global|local|private|script|contained)\\b",
"name": "keyword.control.powershell"
},
{
View
2  Support/PowershellSyntax.tmLanguage
@@ -211,7 +211,7 @@
</dict>
<dict>
<key>match</key>
- <string>\b(?i:if|else|elseif|switch|while|default|for|do|until|break|continue|foreach|return|filter|in|trap|throw|param|begin|process|end|function|global|local|private|script|contained)\b</string>
+ <string>\b(?i:if|else|elseif|switch|while|default|try|finally|catch|for|do|until|break|continue|foreach|return|filter|in|trap|throw|param|begin|process|end|function|global|local|private|script|contained)\b</string>
<key>name</key>
<string>keyword.control.powershell</string>
</dict>
Please sign in to comment.
Something went wrong with that request. Please try again.