nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6a3ba2ab501c138c7ee1e72d2a65cea77342a43c
parent 1878168ae37b5bd032a8f818b5cbec0455eefedd
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 25 Dec 2020 16:47:49 +0100

syntax: sh: recognize shebangs with any shell after 'env', not just 'sh'

(Inspired by a complaint seen somewhere on Stackoverflow.)

Diffstat:
Msyntax/sh.nanorc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc @@ -1,7 +1,7 @@ ## Syntax highlighting for Bourne shell scripts. 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)" +header "^#!.*/((env\s+)?((a|ba|c|da|k|mk|pdk|tc|z)?sh)|busybox\s+sh|openrc-run|runscript)\>" header "-\*-.*shell-script.*-\*-" magic "(POSIX|Bourne-Again) shell script.*text" comment "#"