Fix python3 syntax file and make python3 default

The python3 syntax had "filename" instead of "filetype"
as the header. This commit also makes standard py extensions
use the python3 highlighting and requires .py2 or a python2
env to use python2 highlighting because python3 is the standard
python now.

Fixes #1592
This commit is contained in:
Zachary Yedidia
2020-03-24 11:42:23 -04:00
parent 60c8c81da3
commit 1cf9537340
3 changed files with 11 additions and 11 deletions

View File

@@ -1,8 +1,8 @@
filetype: python
filetype: python2
detect:
filename: "\\.py$"
header: "^#!.*/(env +)?python( |$)"
filename: "\\.py2$"
header: "^#!.*/(env +)?python2$"
rules: