Skip to content

Commit a2c591f

Browse files
committed
Allow relative paths for python firstLine detection
Fixes microsoft#87214
1 parent 714ba18 commit a2c591f

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
@@ -14,7 +14,7 @@
1414
"extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi", ".pyi", ".ipy"],
1515
"aliases": [ "Python", "py" ],
1616
"filenames": [ "Snakefile" ],
17-
"firstLine": "^#!\\s*/.*\\bpython[0-9.-]*\\b",
17+
"firstLine": "^#!\\s*/?.*\\bpython[0-9.-]*\\b",
1818
"configuration": "./language-configuration.json"
1919
}],
2020
"grammars": [{

0 commit comments

Comments
 (0)