diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc index afb68e77..eabc394d 100644 --- a/syntax/sh.nanorc +++ b/syntax/sh.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Bourne shell scripts. -syntax sh "(\.sh|\.(a|ba|c|da|k|mk|pdk|tc|z)(sh|shrc|sh_profile)|/(etc/|\.)profile)$" +syntax sh "(\.sh|(\.|/)(a|ba|c|da|k|mk|pdk|tc|z)sh(rc|_profile)?|/(etc/|\.)profile)$" header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|(busybox|env) +sh|openrc-run|runscript)" magic "(POSIX|Bourne-Again) shell script.*text" comment "#"