Merge pull request #624 from sophacles/ultisnip_with

Python: Enhance python `with` snippet for UltiSnips
This commit is contained in:
Holger Rapp 2015-09-24 21:41:31 +02:00
commit 9b9c6041dc

View File

@ -16,6 +16,12 @@ if __name__ == `!p snip.rv = get_quoting_style(snip)`__main__`!p snip.rv = get_q
${1:${VISUAL:main()}}
endsnippet
snippet with "with" b
with ${1:expr}`!p snip.rv = " as " if t[2] else ""`${2:var}:
${3:${VISUAL:pass}}
${0}
endsnippet
snippet for "for loop" b
for ${1:item} in ${2:iterable}:
${3:${VISUAL:pass}}