tweaking the ruby-mode snippets slightly

This commit is contained in:
capitaomorte
2009-11-27 16:05:05 +00:00
parent 295972897f
commit 1c812b8692
5 changed files with 33 additions and 28 deletions

View File

@@ -4,6 +4,6 @@
# name: New Block
## condition: "source.ruby"
# --
`[[ $TM_LINE_INDEX != 0 ]] && echo; echo`=begin rdoc
`(if (save-restriction (widen) (eq 1 (line-number-at-pos))) "\n\n" "\n")`=begin rdoc
$0
=end

View File

@@ -2,6 +2,6 @@
# key: y
# contributor: Translated from TextMate Snippet
# name: :yields:
## condition: "source.ruby comment"
# condition: (yas/ruby-in-comment-p)
# --
:yields: ${0:arguments}
:yields: ${1:arguments}