From 6c1bf5e71dd58e5464d9d220c14fd380aeedb056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Audrius=20Ka=C5=BEukauskas?= Date: Sat, 25 Jul 2015 16:45:15 +0300 Subject: [PATCH] python: Allow to set triple quote style separately --- UltiSnips/python.snippets | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 8fe2172..3ee7d92 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -70,7 +70,10 @@ def get_quoting_style(snip): return DOUBLE_QUOTES def triple_quotes(snip): - return get_quoting_style(snip) * 3 + style = snip.opt("g:ultisnips_python_triple_quoting_style") + if not style: + return get_quoting_style(snip) * 3 + return (SINGLE_QUOTES if style == 'single' else DOUBLE_QUOTES) * 3 def triple_quotes_handle_trailing(snip, quoting_style): """