Skip to content

Commit d34d973

Browse files
committed
[python] non-file extension filetype detection. Fixes microsoft#52519
1 parent 44ab799 commit d34d973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"id": "python",
1313
"extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi", ".snakefile", ".smk"],
1414
"aliases": [ "Python", "py" ],
15-
"firstLine": "^#!/.*\\bpython[0-9.-]*\\b",
15+
"firstLine": "^#!\\s*/.*\\bpython[0-9.-]*\\b",
1616
"configuration": "./language-configuration.json"
1717
}],
1818
"grammars": [{

0 commit comments

Comments
 (0)