forked from scopatz/nanorc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add header directives for perl and ruby, make the sh header directive…
… more flexible, add header keyword to nanorc highlighting
- Loading branch information
1 parent
5e347dd
commit 6e75ada
Showing
4 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
## Here is an example for Bourne shell scripts. | ||
## | ||
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_]+\(\)" | ||
header "^#!.*/(env +)?(ba)?sh( |$)" | ||
|
||
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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" | ||
color green "-[Ldefgruwx]\>" | ||
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" | ||
color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" | ||
icolor brightgreen "^\s+?[0-9A-Z_]+\s+?\(\)" | ||
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" | ||
color cyan "(^|[[:space:]])#.*$" | ||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" | ||
color cyan "(^|[[:space:]])#.*$" | ||
#color ,green "[[:space:]]+$" |