From a2c591f8caff05b7fb7c3e04bbe6fed6758f5ab1 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 20 Dec 2019 09:46:22 +0100 Subject: [PATCH] Allow relative paths for python firstLine detection Fixes #87214 --- extensions/python/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/python/package.json b/extensions/python/package.json index 645cba2bae3..c500b586f45 100644 --- a/extensions/python/package.json +++ b/extensions/python/package.json @@ -14,7 +14,7 @@ "extensions": [ ".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi", ".pyi", ".ipy"], "aliases": [ "Python", "py" ], "filenames": [ "Snakefile" ], - "firstLine": "^#!\\s*/.*\\bpython[0-9.-]*\\b", + "firstLine": "^#!\\s*/?.*\\bpython[0-9.-]*\\b", "configuration": "./language-configuration.json" }], "grammars": [{