Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac7fb31

Browse files
committed
Add support for version numbers in the first line for python
For example, the following will now match: /usr/bin/python3 /usr/bin/env python3 /usr/bin/env python3.4
1 parent 8daa100 commit ac7fb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grammars/python.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'tac'
1717
'wsgi'
1818
]
19-
'firstLineMatch': '^#!/.*\\bpython\\b'
19+
'firstLineMatch': '^#!/.*\\bpython[\\d\\.]*\\b'
2020
'patterns': [
2121
{
2222
'begin': '(^[ \\t]+)?(?=#)'

0 commit comments

Comments
 (0)