Add header directives for perl and ruby, make the sh header directive more flexible, add header keyword to nanorc highlighting

This commit is contained in:
Matthew Cox 2014-08-02 23:25:00 +01:00
parent 5e347dd43c
commit 6e75adacec
4 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,8 @@
## Here is an example for Ruby.
##
syntax "ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile"
header "^#!.*/(env +)?ruby( |$)"
## Asciibetical list of reserved words
color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
## Constants