Skip to content

Commit e94ca10

Browse files
committed
[bash] syntax coloring should accept options on shebang line. Fixes microsoft#11040
1 parent 0b0d4c4 commit e94ca10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/shellscript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"aliases": ["Shell Script (Bash)", "shellscript", "bash", "sh", "zsh"],
1313
"extensions": [".sh", ".bash", ".bashrc", ".bash_aliases", ".bash_profile", ".bash_login", ".ebuild", ".install", ".profile", ".bash_logout", ".zsh", ".zshrc", ".zprofile", ".zlogin", ".zlogout", ".zshenv"],
1414
"filenames": ["PKGBUILD"],
15-
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh)|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
15+
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
1616
"configuration": "./language-configuration.json",
1717
"mimetypes": ["text/x-shellscript"]
1818
}],

0 commit comments

Comments
 (0)