mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 23:20:18 +09:00
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:
@@ -1,8 +1,8 @@
|
||||
filetype: python
|
||||
filetype: python2
|
||||
|
||||
detect:
|
||||
filename: "\\.py$"
|
||||
header: "^#!.*/(env +)?python( |$)"
|
||||
filename: "\\.py2$"
|
||||
header: "^#!.*/(env +)?python2$"
|
||||
|
||||
rules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user