mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
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:
parent
5e347dd43c
commit
6e75adacec
4 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue