Skip to content

Commit

Permalink
Use literal tab character in snippets
Browse files Browse the repository at this point in the history
TextMate will replace these with the users current indent settings upon insertion.

Fixes jashkenas#62.
  • Loading branch information
infininight authored and ttilley committed Apr 2, 2013
1 parent 7706296 commit 1f20993
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Snippets/Array comprehension.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for ${1:name} in ${2:array}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Array Comprehension</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Bound Function.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>(${1:args}) =&gt;
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Function (bound)</string>
<key>scope</key>
Expand Down
6 changes: 3 additions & 3 deletions Snippets/Class.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<key>content</key>
<string>class ${1:ClassName}${2: extends ${3:Ancestor}}
${4:constructor: (${5:args}) -&gt;
${6:# body...}}
$7</string>
${4:constructor: (${5:args}) -&gt;
${6:# body...}}
$7</string>
<key>name</key>
<string>Class</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Else if.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>else if ${1:condition}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Else if</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Function.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>(${1:args}) -&gt;
${0:# body...}
${0:# body...}
</string>
<key>name</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/If __ Else.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<dict>
<key>content</key>
<string>if ${1:condition}
${2:# body...}
${2:# body...}
else
${3:# body...}</string>
${3:# body...}</string>
<key>name</key>
<string>If .. Else</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/If.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>if ${1:condition}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>If</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Object comprehension.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for ${1:key}, ${2:value} of ${3:Object}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Object comprehension</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Range comprehension (exclusive).tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for ${1:name} in [${2:start}...${3:finish}]${4: by ${5:step}}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Range comprehension (exclusive)</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Range comprehension (inclusive).tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for ${1:name} in [${2:start}..${3:finish}]${4: by ${5:step}}
${0:# body...}</string>
${0:# body...}</string>
<key>name</key>
<string>Range comprehension (inclusive)</string>
<key>scope</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Switch.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<dict>
<key>content</key>
<string>switch ${1:object}
when ${2:value}
${0:# body...}</string>
when ${2:value}
${0:# body...}</string>
<key>name</key>
<string>Switch</string>
<key>scope</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Try __ Catch.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<dict>
<key>content</key>
<string>try
$1
$1
catch ${2:error}
$3</string>
$3</string>
<key>name</key>
<string>Try .. Catch</string>
<key>scope</key>
Expand Down

0 comments on commit 1f20993

Please sign in to comment.