nano

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

commit d53521a631166ba67cc2c4e039a2ffaefc10ae2d
parent 5beb14cffe214e60cfeaca03a67c2432d4685d5e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 22 Apr 2024 10:29:02 +0200

syntax: sh: recognize more shells than `sh` on a shebang line for busybox

Also, elide an unneeded pair of parentheses.

Original-patch-by: Sertonix <sertonix@posteo.net>
  https://lists.gnu.org/archive/html/nano-devel/2024-04/msg00026.html

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 "^#!.*/((env[[:blank:]]+)?((a|ba|c|da|k|mk|pdk|tc|z)?sh)|busybox[[:blank:]]+sh|openrc-run|runscript)\>" +header "^#!.*/(((env|busybox)[[:blank:]]+)?(a|ba|c|da|k|mk|pdk|tc|z)?sh|openrc-run|runscript)\>" header "-\*-.*shell-script.*-\*-" magic "(POSIX|Bourne-Again) shell script.*text" comment "#"