From f25adadc502bba50f3ff09f227c0d80a96b9f99a Mon Sep 17 00:00:00 2001 From: ujihisa Date: Mon, 1 Apr 2013 20:13:15 -0700 Subject: [PATCH] typofix: lambda. also follows coding convention --- autoload/neosnippet/snippets/ruby.snip | 28 ++++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/autoload/neosnippet/snippets/ruby.snip b/autoload/neosnippet/snippets/ruby.snip index d631e40..7c06441 100644 --- a/autoload/neosnippet/snippets/ruby.snip +++ b/autoload/neosnippet/snippets/ruby.snip @@ -75,41 +75,47 @@ options word snippet each_byte options word - each_byte { |${1:#:variable}| ${2} } + each_byte {|${1:#:variable}| ${2} } snippet each_char options word - each_char { |${1:#:variable}| ${2} } + each_char {|${1:#:variable}| ${2} } snippet each_index options word - each_index { |${1:#:variable}| ${2} } + each_index {|${1:#:variable}| ${2} } snippet each_key options word - each_key { |${1:#:variable}| ${2} } + each_key {|${1:#:variable}| ${2} } snippet each_line options word - each_line { |${1:#:variable}| ${2} } + each_line {|${1:#:variable}| ${2} } snippet each_with_index options word - each_with_index { |${1:#:variable}| ${2} } + each_with_index {|${1:#:variable}| ${2} } snippet map options word - map { |${1:#:variable}| ${2} } + map {|${1:#:variable}| ${2} } snippet sort options word - sort { |${1:#:variable}| ${2} } + sort {|${1:#:variable}| ${2} } snippet sort_by options word - sort_by { |${1:#:variable}| ${2} } + sort_by {|${1:#:variable}| ${2} } -snippet lamda +snippet lambda options word - lambda { |${1:#:args}| ${2} } + lambda {|${1:#:args}| ${2} } +snippet main +options head + if __FILE__ == $ 0 + ${1:TARGET} + end +# the space is necessary unfortunately..