Improved ruby snip.

This commit is contained in:
ujihisa 2012-09-22 22:55:13 -07:00
parent 20db46190d
commit 52d86e726c
2 changed files with 11 additions and 4 deletions

View File

@ -6,7 +6,7 @@ abbr if end
snippet def snippet def
abbr def end abbr def end
def ${1:func_name} def ${1:method_name}
${2} ${2}
end end
@ -23,17 +23,23 @@ abbr do |var| end
end end
snippet block snippet block
abbr { |var| } abbr { }
{ {
${1} ${1}
} }
snippet blockvar snippet blockvar
abbr { |var| } abbr {|var| }
{ |${1:var}| {|${1:var}|
${2} ${2}
} }
snippet fileopen
abbr File.open(filename) do end
File.open(${1:filename}, '${2:w}') do |${3:io}|
${0}
end
snippet edn snippet edn
abbr => end? abbr => end?
end end

View File

@ -312,6 +312,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
- Fixed column in select mode. - Fixed column in select mode.
- Added lua snip. - Added lua snip.
- Improved javascript snip. - Improved javascript snip.
- Improved ruby snip.
2012-09-06 2012-09-06
- Added neocomplcache__convertable attribute. - Added neocomplcache__convertable attribute.