From: Benno Schulenberg Date: Wed, 18 Feb 2015 20:01:30 +0000 (+0000) Subject: Recognizing also dash, openrc and runscript as shell scripts. X-Git-Tag: v2.3.99pre3~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bb4edd01363c801b34d6aaf4e6cb6abecd3a6448;p=nano.git Recognizing also dash, openrc and runscript as shell scripts. Patch by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5120 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index aa2fc5e3..bdfe2ee0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2015-02-18 Mike Frysinger + * doc/syntax/sh.nanorc: Recognize also dash, openrc and runscript. + 2015-02-16 Mike Frysinger * .gitignore: Ignore the autotools 'compile' file. diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc index 36b049fc..074e03ac 100644 --- a/doc/syntax/sh.nanorc +++ b/doc/syntax/sh.nanorc @@ -1,7 +1,7 @@ ## Here is an example for Bourne shell scripts. syntax "sh" "\.sh$" -header "^#!.*(ba|k|pdk)?sh[-0-9_]*" +header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)" magic "(POSIX|Bourne.*) shell script text" icolor brightgreen "^[0-9A-Z_]+\(\)"