Skip to content

Commit

Permalink
Update angular directive snippet and go inline error snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Dec 4, 2014
1 parent 0328e2b commit bce61f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Preferences.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
"tmp",
"log",
"binaries",
"node_modules"
"node_modules",
"bower_components",
"dist"
],
"font_face": "Monaco",
"font_size": 19.0,
Expand Down
2 changes: 1 addition & 1 deletion snippets/angular_directive.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('$1').directive('$2', [
'$3'
function($3) {
return {
link: function(scope, $el, attrs) {
link: function(\$scope, \$el, attrs) {
$4
}
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/if_err_nil_inline_go.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
if $1; err != nil {
if err := $1; err != nil {
$2return err
}
]]></content>
Expand Down

0 comments on commit bce61f6

Please sign in to comment.