Skip to content

Commit ae9b6d0

Browse files
author
Youssef Boulkaid
committed
Use {0} marker as last marker for ruby
1 parent 1f2021f commit ae9b6d0

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

neosnippets/ruby.snip

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ options head
88
snippet if
99
abbr if ... end
1010
if ${1:#:condition}
11-
${2:TARGET}
11+
${0:TARGET}
1212
end
1313

1414
snippet unless
1515
abbr unless ... end
1616
unless ${1:#:condition}
17-
${2:TARGET}
17+
${0:TARGET}
1818
end
1919

2020
snippet def
2121
abbr def ... end
2222
def ${1:#:method_name}
23-
${2:TARGET}
23+
${0:TARGET}
2424
end
2525

2626
snippet defrescue
@@ -29,31 +29,31 @@ abbr def ... rescue ... end
2929
def ${1:#:method_name}
3030
${2:TARGET}
3131
rescue ${3:#:StandardError} => ${4:error}
32-
${5}
32+
${0}
3333
end
3434

3535
snippet do
3636
abbr do ... end
3737
do
38-
${1:TARGET}
38+
${0:TARGET}
3939
end
4040

4141
snippet dovar
4242
abbr do |var| ... end
4343
do |${1:#:var}|
44-
${2:TARGET}
44+
${0:TARGET}
4545
end
4646

4747
snippet block
4848
abbr { ... }
4949
{
50-
${1:TARGET}
50+
${0:TARGET}
5151
}
5252

5353
snippet blockvar
5454
abbr {|var| ... }
5555
{|${1:#:var}|
56-
${2:TARGET}
56+
${0:TARGET}
5757
}
5858

5959
snippet fileopen
@@ -80,62 +80,62 @@ alias enc
8080
snippet each
8181
options word
8282
each do |${1:#:variable}|
83-
${2}
83+
${0}
8484
end
8585

8686
snippet each_byte
8787
options word
88-
each_byte {|${1:#:variable}| ${2} }
88+
each_byte {|${1:#:variable}| ${0} }
8989

9090
snippet each_char
9191
options word
92-
each_char {|${1:#:variable}| ${2} }
92+
each_char {|${1:#:variable}| ${0} }
9393

9494
snippet each_index
9595
options word
96-
each_index {|${1:#:variable}| ${2} }
96+
each_index {|${1:#:variable}| ${0} }
9797

9898
snippet each_key
9999
options word
100-
each_key {|${1:#:variable}| ${2} }
100+
each_key {|${1:#:variable}| ${0} }
101101

102102
snippet each_line
103103
options word
104-
each_line {|${1:#:variable}| ${2} }
104+
each_line {|${1:#:variable}| ${0} }
105105

106106
snippet each_with_index
107107
options word
108-
each_with_index {|${1:#:variable}| ${2} }
108+
each_with_index {|${1:#:variable}| ${0} }
109109

110110
snippet each_pair
111111
options word
112-
each_pair {|${1:#:key}, ${2:value}| ${3} }
112+
each_pair {|${1:#:key}, ${2:value}| ${0} }
113113

114114
snippet each_pair_do
115115
options word
116116
each_pair do |${1:key}, ${2:value}|
117-
${3}
117+
${0}
118118
end
119119

120120
snippet map
121121
options word
122-
map {|${1:#:variable}| ${2} }
122+
map {|${1:#:variable}| ${0} }
123123

124124
snippet sort
125125
options word
126-
sort {|${1:x}, ${2:y}| ${2} }
126+
sort {|${1:x}, ${2:y}| ${0} }
127127

128128
snippet sort_by
129129
options word
130-
sort_by {|${1:#:variable}| ${2} }
130+
sort_by {|${1:#:variable}| ${0} }
131131

132132
snippet lambda
133133
options word
134-
-> (${1:#:args}) { ${2} }
134+
-> (${1:#:args}) { ${0} }
135135

136136
snippet lambda-keyword
137137
options word
138-
lambda {|${1:#:args}| ${2} }
138+
lambda {|${1:#:args}| ${0} }
139139

140140
snippet main
141141
options head
@@ -162,7 +162,7 @@ options head
162162
when ${2}
163163
${3}
164164
else
165-
${4}
165+
${0}
166166
end
167167

168168
snippet class

0 commit comments

Comments
 (0)