From b19f77feef7db00ac2fac4bce7ab8d2a4de859cd Mon Sep 17 00:00:00 2001 From: Steven Honeyman Date: Sun, 22 Jun 2014 00:02:33 +0100 Subject: [PATCH] Minor improvements to sh.nanorc - Removed "makefile" (it has its own highlighting) - Added header filter to detect files without an extension - Added .bash_functions as a "known file" --- sh.nanorc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sh.nanorc b/sh.nanorc index 959a1b9..d0552bc 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -1,6 +1,7 @@ ## Here is an example for Bourne shell scripts. ## -syntax "sh" "\.sh$" "Makefile" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_profile" "bash_profile" +syntax "sh" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile" +header "^#!.*/(ba)?sh" icolor brightgreen "^[0-9A-Z_]+\(\)" color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"