Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Last minute updates before release

  • Loading branch information...
commit c032902223bef991d3bf469db2e694bea2e1a9d2 1 parent 51fa67d
@tpope tpope authored
View
5 ChangeLog
@@ -1,5 +1,10 @@
2007-05-06 Tim Pope <vim@tpope.info>
+ * doc/ft-ruby-syntax.txt: bring into sync with upstream
+ * ftdetect/ruby.vim: Rails extensions
+
+2007-05-06 Tim Pope <vim@tpope.info>
+
* NEWS: update documentation for next release
* syntax/eruby.vim: allow for nesting (foo.erb.erb)
* syntax/ruby.vim: removed : from rubyOptionalDoLine (falsely matches
View
4 doc/ft-ruby-syntax.txt
@@ -1,4 +1,4 @@
-RUBY *ruby.vim* *ruby-syntax*
+RUBY *ruby.vim* *ft-ruby-syntax*
There are a number of options to the Ruby syntax highlighting.
@@ -16,7 +16,7 @@ scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
the "ruby_minlines" variable to a value larger than 50: >
:let ruby_minlines = 100
->
+<
Ideally, this value should be a number of lines large enough to embrace your
largest class or module.
View
11 ftdetect/ruby.vim
@@ -1,11 +1,14 @@
" Ruby
-au BufNewFile,BufRead *.rb,*.rbw,*.rjs,*.rxml,*.gem,*.gemspec set filetype=ruby
+au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec set filetype=ruby
+
+" Ruby on Rails
+au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby
" Rakefile
-au BufNewFile,BufRead [rR]akefile* set filetype=ruby
+au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby
" Rantfile
-au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby
+au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby
" eRuby
-au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby
+au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby
View
2  syntax/eruby.vim
@@ -41,7 +41,7 @@ if !exists("b:eruby_subtype") && main_syntax == 'eruby'
endif
if !exists("b:eruby_nest_level")
- let b:eruby_nest_level = strlen(substitute(substitute(substitute(expand("%:t"),'@','','g'),'\c\.erb\>','@','g'),'[^@]','','g'))
+ let b:eruby_nest_level = strlen(substitute(substitute(substitute(expand("%:t"),'@','','g'),'\c\.\%(erb\|rhtml\)\>','@','g'),'[^@]','','g'))
endif
if !b:eruby_nest_level
let b:eruby_nest_level = 1
Please sign in to comment.
Something went wrong with that request. Please try again.