Skip to content

Instantly share code, notes, and snippets.

@sebastianwagner
Created July 5, 2013 08:00
Show Gist options
  • Save sebastianwagner/5932811 to your computer and use it in GitHub Desktop.
Save sebastianwagner/5932811 to your computer and use it in GitHub Desktop.
Update for ruby.nanorc to support Vagrantfile with syntax highlighting
diff --git a/ruby.nanorc b/ruby.nanorc
index b30b229..3bdfd81 100644
--- a/ruby.nanorc
+++ b/ruby.nanorc
@@ -1,6 +1,6 @@
## Here is an example for Ruby.
##
-syntax "ruby" "\.rb$"
+syntax "ruby" "Vagrantfile|\.rb$"
header "^#!.*/ruby[-0-9._]*"
## 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)\>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment