Improved ruby snip.
This commit is contained in:
parent
08fccee8e7
commit
13d34ada5d
@ -116,5 +116,17 @@ options word
|
|||||||
snippet main
|
snippet main
|
||||||
options head
|
options head
|
||||||
if __FILE__ == \$0
|
if __FILE__ == \$0
|
||||||
${1:TARGET}
|
${0:TARGET}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# This idiom is only for legacy ruby such as 1.9.3
|
||||||
|
snippet filedir-legacy-compatibility
|
||||||
|
alias __dir__
|
||||||
|
abbr File.dirname(...)
|
||||||
|
File.dirname(File.expand_path(__FILE__))
|
||||||
|
|
||||||
|
snippet glob
|
||||||
|
options head
|
||||||
|
Dir.glob(${1:'**/*'}) do |fname|
|
||||||
|
${0:TARGET}
|
||||||
|
end
|
||||||
|
@ -722,6 +722,9 @@ A: You can use |:NeoSnippetSource| for it.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
CHANGELOG *neosnippet-changelog*
|
CHANGELOG *neosnippet-changelog*
|
||||||
|
|
||||||
|
2013-06-18
|
||||||
|
- Improved ruby snip.
|
||||||
|
|
||||||
2013-06-16
|
2013-06-16
|
||||||
- Added groovy snip.
|
- Added groovy snip.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user