From d666cfc6a5042c1fb1832941a734bdde7adbfd92 Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Thu, 20 Jun 2013 10:27:05 +0800 Subject: [PATCH] add usage for enumberic items --- UltiSnips/rst.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UltiSnips/rst.snippets b/UltiSnips/rst.snippets index 1eba274..c8b62e5 100644 --- a/UltiSnips/rst.snippets +++ b/UltiSnips/rst.snippets @@ -75,6 +75,7 @@ def make_items(times, leading='+'): return ("%s Item\n" % leading) * times endglobal +# usage: li 3 snippet "li(st)? (?P\d+)" "List" br $0 `!p @@ -82,6 +83,7 @@ snip.rv = make_items(match.groupdict()['num']) ` endsnippet +# usage: ol 3 snippet "ol(st)? (?P\d+)" "Order List" br $0 `!p