mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 02:14:17 +00:00
tweaking the ruby-mode snippets slightly
This commit is contained in:
@@ -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
|
||||
@@ -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}
|
||||
Reference in New Issue
Block a user