add usage for enumberic items
This commit is contained in:
parent
eaeada33c5
commit
d666cfc6a5
@ -75,6 +75,7 @@ def make_items(times, leading='+'):
|
|||||||
return ("%s Item\n" % leading) * times
|
return ("%s Item\n" % leading) * times
|
||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
|
# usage: li 3<tab>
|
||||||
snippet "li(st)? (?P<num>\d+)" "List" br
|
snippet "li(st)? (?P<num>\d+)" "List" br
|
||||||
$0
|
$0
|
||||||
`!p
|
`!p
|
||||||
@ -82,6 +83,7 @@ snip.rv = make_items(match.groupdict()['num'])
|
|||||||
`
|
`
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
# usage: ol 3<tab>
|
||||||
snippet "ol(st)? (?P<num>\d+)" "Order List" br
|
snippet "ol(st)? (?P<num>\d+)" "Order List" br
|
||||||
$0
|
$0
|
||||||
`!p
|
`!p
|
||||||
|
Loading…
Reference in New Issue
Block a user