[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] syntax: detect '#!/bin/busybox ash' header
From: |
Sertonix |
Subject: |
[PATCH] syntax: detect '#!/bin/busybox ash' header |
Date: |
Sun, 21 Apr 2024 17:41:49 +0000 |
Signed-off-by: Sertonix <sertonix@posteo.net>
---
syntax/sh.nanorc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc
index bf15d44a..8b70433e 100644
--- 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[[:blank:]]+)?((a|ba|c|da|k|mk|pdk|tc|z)?sh)|busybox[[:blank:]]+a?sh|openrc-run|runscript)\>"
header "-\*-.*shell-script.*-\*-"
magic "(POSIX|Bourne-Again) shell script.*text"
comment "#"
--
2.44.0
- [PATCH] syntax: detect '#!/bin/busybox ash' header,
Sertonix <=