@@ -3655,7 +3655,7 @@ function! s:BufSyntax()
3655
3655
syn cluster htmlArgCluster add =@rubyStringSpecial
3656
3656
syn cluster htmlPreProc add =@rubyStringSpecial
3657
3657
3658
- elseif &syntax == ' eruby' || &syntax == ' haml'
3658
+ elseif &syntax = ~# ' ^ eruby\> ' || &syntax == ' haml'
3659
3659
syn case match
3660
3660
if classes != ' '
3661
3661
exe ' syn keyword ' .&syntax .' RailsUserClass ' .classes.' contained containedin=@' .&syntax .' RailsRegions'
@@ -4592,7 +4592,7 @@ function! s:BufSettings()
4592
4592
elseif ft == ' yaml' || fnamemodify (self .name (),' :e' ) == ' yml'
4593
4593
call self .setvar (' &define' ,self .define_pattern ())
4594
4594
call self .setvar (' &suffixesadd' ," .yml,.csv,.rb,." .s: gsub (s: view_types ,' ,' ,' ,.' )." ,.rake,s.rb" )
4595
- elseif ft == ' eruby'
4595
+ elseif ft = ~# ' ^ eruby\> '
4596
4596
call self .setvar (' &suffixesadd' ," ." .s: gsub (s: view_types ,' ,' ,' ,.' )." ,.rb,.css,.js,.html,.yml,.csv" )
4597
4597
if exists (" g:loaded_allml" )
4598
4598
call self .setvar (' allml_stylesheet_link_tag' , " <%= stylesheet_link_tag '\r ' %>" )
@@ -4616,7 +4616,7 @@ function! s:BufSettings()
4616
4616
call self .setvar (' ragtag_doctype_index' , 10 )
4617
4617
endif
4618
4618
endif
4619
- if ft == ' eruby' || ft == ' yaml'
4619
+ if ft = ~# ' ^ eruby\> ' || ft == # ' yaml'
4620
4620
" surround.vim
4621
4621
if exists (" g:loaded_surround" )
4622
4622
" The idea behind the || part here is that one can normally define the
0 commit comments