Merge pull request #624 from sophacles/ultisnip_with
Python: Enhance python `with` snippet for UltiSnips
This commit is contained in:
commit
9b9c6041dc
@ -16,6 +16,12 @@ if __name__ == `!p snip.rv = get_quoting_style(snip)`__main__`!p snip.rv = get_q
|
|||||||
${1:${VISUAL:main()}}
|
${1:${VISUAL:main()}}
|
||||||
endsnippet
|
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
|
snippet for "for loop" b
|
||||||
for ${1:item} in ${2:iterable}:
|
for ${1:item} in ${2:iterable}:
|
||||||
${3:${VISUAL:pass}}
|
${3:${VISUAL:pass}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user