mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 21:51:43 -05:00
file line detection: allow whitespace after shebang
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"aliases": ["Makefile", "makefile"],
|
||||
"extensions": [ ".mk" ],
|
||||
"filenames": [ "Makefile", "makefile", "GNUmakefile", "OCamlMakefile" ],
|
||||
"firstLine": "^#!/usr/bin/make",
|
||||
"firstLine": "^#!\\s*/usr/bin/make",
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"PHP",
|
||||
"php"
|
||||
],
|
||||
"firstLine": "^#!/.*\\bphp\\b",
|
||||
"firstLine": "^#!\\s*/.*\\bphp\\b",
|
||||
"mimetypes": [
|
||||
"application/x-php"
|
||||
],
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"id": "powershell",
|
||||
"extensions": [ ".ps1", ".psm1", ".psd1", ".pssc", ".psrc" ],
|
||||
"aliases": [ "PowerShell", "powershell", "ps", "ps1" ],
|
||||
"firstLine": "^#!/.*\\bpwsh\\b",
|
||||
"firstLine": "^#!\\s*/.*\\bpwsh\\b",
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"extensions": [ ".rb", ".rbx", ".rjs", ".gemspec", ".rake", ".ru", ".erb" ],
|
||||
"filenames": [ "rakefile", "gemfile", "guardfile", "podfile", "capfile" ],
|
||||
"aliases": [ "Ruby", "rb" ],
|
||||
"firstLine": "^#!/.*\\bruby\\b",
|
||||
"firstLine": "^#!\\s*/.*\\bruby\\b",
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
|
||||
Reference in New Issue
Block a user