Skip to content

Commit f28de15

Browse files
committed
Restore setting filetype for rjs and builder
1 parent b14f580 commit f28de15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/rails.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4362,6 +4362,8 @@ function! RailsBufInit(path)
43624362
call app.source_callback("config/syntax.vim")
43634363
if expand('%:t') =~ '\.yml\.example$'
43644364
setlocal filetype=yaml
4365+
elseif expand('%:e') =~ '^\%(rjs\|rxml\|builder\)$'
4366+
setlocal filetype=ruby
43654367
elseif firsttime
43664368
" Activate custom syntax
43674369
let &syntax = &syntax

0 commit comments

Comments
 (0)