diff --git a/UltiSnips/rails.snippets b/UltiSnips/rails.snippets index 9f36116..9e0e29f 100644 --- a/UltiSnips/rails.snippets +++ b/UltiSnips/rails.snippets @@ -3,7 +3,7 @@ ########################################################################### snippet anaf "accepts_nested_attributes_for" -accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy => true}${4:, :reject_if => proc { |obj| ${5:obj.blank?} \}}} +accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy => true}${4:, :reject_if => proc \{ |obj| ${5:obj.blank?} \}}} endsnippet diff --git a/UltiSnips/ruby.snippets b/UltiSnips/ruby.snippets index aaddac3..3a4ba77 100644 --- a/UltiSnips/ruby.snippets +++ b/UltiSnips/ruby.snippets @@ -84,7 +84,7 @@ endsnippet -snippet "(de)?f" "def ..." r +snippet "\b(de)?f" "def ..." r def ${1:function_name}${2: ${3:*args}} ${4:# TODO$0} end