fix a little problem
This commit is contained in:
parent
cca1deb78c
commit
e45c9a8041
@ -355,7 +355,7 @@ endsnippet
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
snippet "(\S+)\.Each_w(ith)?_?i(ndex)?" ".each_with_index { |<element>,<i>| <block> }" r
|
snippet "(\S+)\.Each_?w(ith)?_?i(ndex)?" ".each_with_index { |<element>,<i>| <block> }" r
|
||||||
`!p snip.rv=match.group(1)`.each_with_index { |${1:`!p
|
`!p snip.rv=match.group(1)`.each_with_index { |${1:`!p
|
||||||
element_name = match.group(1).lstrip('$@')
|
element_name = match.group(1).lstrip('$@')
|
||||||
ematch = re.search("([A-Za-z][A-Za-z0-9_]+?)s?[^A-Za-z0-9_]*?$", element_name)
|
ematch = re.search("([A-Za-z][A-Za-z0-9_]+?)s?[^A-Za-z0-9_]*?$", element_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user