syntax: sh: recognize more file extensions and header lines

Signed-off-by: Devin Hussey <husseydevin@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
master
Devin Hussey 2018-06-10 17:06:58 -04:00 committed by Benno Schulenberg
parent 7c9a4793dd
commit 4a268678a5
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
## Here is an example for Bourne shell scripts.
syntax sh "\.sh$"
header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
syntax sh "(\.sh|\.(a|ba|c|da|k|mk|pdk|tc|z)(sh|shrc|sh_profile)|/(etc/|\.)profile)$"
header "^#!.*(a|ba|c|da|k|mk|pdk|tc|z)?(sh[-0-9_]*|openrc-run|runscript)"
magic "(POSIX|Bourne-Again) shell script.*text"
linter dash -n
comment "#"