Skip to content
This repository was archived by the owner on Apr 27, 2018. It is now read-only.

Commit c032902

Browse files
committed
Last minute updates before release
1 parent 51fa67d commit c032902

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2007-05-06 Tim Pope <[email protected]>
2+
3+
* doc/ft-ruby-syntax.txt: bring into sync with upstream
4+
* ftdetect/ruby.vim: Rails extensions
5+
16
2007-05-06 Tim Pope <[email protected]>
27

38
* NEWS: update documentation for next release

doc/ft-ruby-syntax.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
RUBY *ruby.vim* *ruby-syntax*
1+
RUBY *ruby.vim* *ft-ruby-syntax*
22

33
There are a number of options to the Ruby syntax highlighting.
44

@@ -16,7 +16,7 @@ scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
1616
the "ruby_minlines" variable to a value larger than 50: >
1717
1818
:let ruby_minlines = 100
19-
>
19+
<
2020
Ideally, this value should be a number of lines large enough to embrace your
2121
largest class or module.
2222

ftdetect/ruby.vim

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
" Ruby
2-
au BufNewFile,BufRead *.rb,*.rbw,*.rjs,*.rxml,*.gem,*.gemspec set filetype=ruby
2+
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec set filetype=ruby
3+
4+
" Ruby on Rails
5+
au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby
36

47
" Rakefile
5-
au BufNewFile,BufRead [rR]akefile* set filetype=ruby
8+
au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby
69

710
" Rantfile
8-
au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby
11+
au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby
912

1013
" eRuby
11-
au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby
14+
au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby

syntax/eruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if !exists("b:eruby_subtype") && main_syntax == 'eruby'
4141
endif
4242

4343
if !exists("b:eruby_nest_level")
44-
let b:eruby_nest_level = strlen(substitute(substitute(substitute(expand("%:t"),'@','','g'),'\c\.erb\>','@','g'),'[^@]','','g'))
44+
let b:eruby_nest_level = strlen(substitute(substitute(substitute(expand("%:t"),'@','','g'),'\c\.\%(erb\|rhtml\)\>','@','g'),'[^@]','','g'))
4545
endif
4646
if !b:eruby_nest_level
4747
let b:eruby_nest_level = 1

0 commit comments

Comments
 (0)