Skip to content

Commit 03d890c

Browse files
author
Lukasz Langa
committed
Snippets: env moved to be out-of-string, new variants, future import snips
Title says all. Test plan: `make test`, passed. Installed locally, new snips work, env only works outside of strings.
1 parent be94a77 commit 03d890c

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

snippets/atom.cson

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131
# suitability for any purpose.
3232

3333
'.source.python':
34-
'#!/usr/bin/env python':
35-
'prefix': 'env'
36-
'body': '#!/usr/bin/env python\n'
37-
'# coding=utf-8':
38-
'prefix': 'enc'
39-
'body': '# coding=utf-8\n'
4034
'Assert Equal':
4135
'prefix': 'ase'
4236
'body': 'self.assertEqual(${1:expected}, ${2:actual}${3:, \'${4:message}\'})$0'
@@ -134,3 +128,21 @@
134128
'self':
135129
'prefix': '.'
136130
'body': 'self.'
131+
'#!/usr/bin/env python':
132+
'prefix': 'env'
133+
'body': '#!/usr/bin/env python\n'
134+
'#!/usr/bin/env python3':
135+
'prefix': 'env3'
136+
'body': '#!/usr/bin/env python3\n'
137+
'#!/usr/bin/env python2':
138+
'prefix': 'env2'
139+
'body': '#!/usr/bin/env python2\n'
140+
'#!/usr/bin/env python3 default':
141+
'prefix': '#!'
142+
'body': '#!/usr/bin/env python3\n'
143+
'# coding=utf-8':
144+
'prefix': 'enc'
145+
'body': '# coding=utf-8\n'
146+
'future imports':
147+
'prefix': 'fut'
148+
'body': 'from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals'

0 commit comments

Comments
 (0)