Skip to content

Commit 11739c0

Browse files
committed
Remove outdated deprecation highlighting
1 parent b4fbf73 commit 11739c0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

autoload/rails.vim

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,8 +3436,6 @@ function! s:BufSyntax()
34363436
endif
34373437
if t =~ '^controller\>' || t =~ '^view\>' || t=~ '^helper\>'
34383438
syn keyword rubyRailsMethod params request response session headers cookies flash
3439-
syn match rubyRailsError '[@:]\@<!@\%(params\|request\|response\|session\|headers\|cookies\|flash\)\>'
3440-
syn match rubyRailsError '\<\%(render_partial\|puts\)\>'
34413439
syn keyword rubyRailsRenderMethod render
34423440
syn keyword rubyRailsMethod logger
34433441
endif
@@ -3450,7 +3448,6 @@ function! s:BufSyntax()
34503448
endif
34513449
elseif t =~ '^controller\>'
34523450
syn keyword rubyRailsControllerMethod helper helper_attr helper_method filter layout url_for serialize exempt_from_layout filter_parameter_logging hide_action cache_sweeper protect_from_forgery caches_page cache_page caches_action expire_page expire_action
3453-
syn match rubyRailsDeprecatedMethod '\<render_\%(action\|text\|file\|template\|nothing\|without_layout\)\>'
34543451
syn keyword rubyRailsRenderMethod render_to_string redirect_to head
34553452
syn match rubyRailsRenderMethod '\<respond_to\>?\@!'
34563453
syn keyword rubyRailsFilterMethod before_filter append_before_filter prepend_before_filter after_filter append_after_filter prepend_after_filter around_filter append_around_filter prepend_around_filter skip_before_filter skip_after_filter
@@ -3531,7 +3528,6 @@ function! s:BufSyntax()
35313528
else
35323529
syn cluster erubyRailsRegions contains=erubyOneLiner,erubyBlock,erubyExpression,rubyInterpolation
35333530
endif
3534-
syn match rubyRailsError '[@:]\@<!@\%(params\|request\|response\|session\|headers\|cookies\|flash\)\>' contained containedin=@erubyRailsRegions
35353531
exe "syn keyword erubyRailsHelperMethod ".s:sub(s:helpermethods(),'<select\s+','')." contained containedin=@erubyRailsRegions"
35363532
syn match erubyRailsHelperMethod '\<select\>\%(\s*{\|\s*do\>\|\s*(\=\s*&\)\@!' contained containedin=@erubyRailsRegions
35373533
syn keyword erubyRailsMethod debugger logger contained containedin=@erubyRailsRegions
@@ -3541,8 +3537,6 @@ function! s:BufSyntax()
35413537
syn keyword erubyRailsMethod local_assigns contained containedin=@erubyRailsRegions
35423538
endif
35433539
syn keyword erubyRailsRenderMethod render contained containedin=@erubyRailsRegions
3544-
syn match rubyRailsError '[^@:]\@<!@\%(params\|request\|response\|session\|headers\|cookies\|flash\)\>' contained containedin=@erubyRailsRegions
3545-
syn match rubyRailsError '\<\%(render_partial\|puts\)\>' contained containedin=@erubyRailsRegions
35463540
syn case match
35473541
set isk+=$
35483542
exe "syn keyword javascriptRailsFunction contained ".s:javascript_functions
@@ -3592,13 +3586,11 @@ function! s:HiDefaults()
35923586
hi def link rubyRailsViewMethod rubyRailsMethod
35933587
hi def link rubyRailsMigrationMethod rubyRailsMethod
35943588
hi def link rubyRailsControllerMethod rubyRailsMethod
3595-
hi def link rubyRailsDeprecatedMethod rubyRailsError
35963589
hi def link rubyRailsFilterMethod rubyRailsMethod
35973590
hi def link rubyRailsTestControllerMethod rubyRailsTestMethod
35983591
hi def link rubyRailsTestMethod rubyRailsMethod
35993592
hi def link rubyRailsRakeMethod rubyRailsMethod
36003593
hi def link rubyRailsMethod railsMethod
3601-
hi def link rubyRailsError rubyError
36023594
hi def link rubyRailsInclude rubyInclude
36033595
hi def link rubyRailsUserClass railsUserClass
36043596
hi def link rubyRailsUserMethod railsUserMethod

0 commit comments

Comments
 (0)