nano

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

commit 26d88ccbb1efd92e402675328c2eba83469b33c8
parent 413b9cb774621d00a074510281ad4d192f5452b2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 16 Dec 2019 19:09:48 +0100

syntax: sh: recognize shell rc files also in dedicated directories

This fulfills https://savannah.gnu.org/bugs/?57411.

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

diff --git 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 "#"