[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] syntax: sh: recognize more file extensions and head
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH] syntax: sh: recognize more file extensions and header lines |
Date: |
Fri, 13 Jul 2018 12:07:39 +0200 |
From: Devin Hussey <address@hidden>
Signed-off-by: Devin Hussey <address@hidden>
Signed-off-by: Benno Schulenberg <address@hidden>
---
syntax/sh.nanorc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc
index 9d36d7b8..82f75c4a 100644
--- a/syntax/sh.nanorc
+++ b/syntax/sh.nanorc
@@ -1,7 +1,7 @@
## Here is an example for Bourne shell scripts.
-syntax sh "\.sh$"
-header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
+syntax sh
"(\.sh|\.(a|ba|c|da|k|mk|pdk|tc|z)(sh|shrc|sh_profile)|(/etc/|\.)profile)$"
+header "^#!.*(a|ba|c|da|k|mk|pdk|tc|z)?(sh[-0-9_]*|openrc-run|runscript)"
magic "(POSIX|Bourne-Again) shell script.*text"
linter dash -n
comment "#"
--
2.17.1
- [Nano-devel] [PATCH] syntax: sh: recognize more file extensions and header lines,
Benno Schulenberg <=