Created
July 5, 2013 08:00
-
-
Save sebastianwagner/5932811 to your computer and use it in GitHub Desktop.
Update for ruby.nanorc to support Vagrantfile with syntax highlighting
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
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