[python] non-file extension filetype detection. Fixes #52519

This commit is contained in:
Martin Aeschlimann 2018-06-21 10:24:20 +02:00
parent 44ab7993d4
commit d34d9735cc

View file

@ -12,7 +12,7 @@
"id": "python",
"extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi", ".snakefile", ".smk"],
"aliases": [ "Python", "py" ],
"firstLine": "^#!/.*\\bpython[0-9.-]*\\b",
"firstLine": "^#!\\s*/.*\\bpython[0-9.-]*\\b",
"configuration": "./language-configuration.json"
}],
"grammars": [{