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"
This commit is contained in:
Steven Honeyman 2014-06-22 00:02:33 +01:00
parent f11e870aba
commit b19f77feef
1 changed files with 2 additions and 1 deletions

View File

@ -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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"