File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11hi def link rubyEntity rubyMacro
22hi def link rubyEntities rubyMacro
3- hi def link rubyExceptionHandler rubyMacro
3+ hi def link rubyExceptionMacro rubyMacro
44hi def link rubyValidation rubyMacro
55hi def link rubyCallback rubyMacro
66hi def link rubyRakeMacro rubyMacro
4646
4747if s: path = ~# ' /app/jobs/.*\.rb$'
4848 syn keyword rubyMacro queue_as
49- syn keyword rubyExceptionHandler rescue_from retry_on discard_on
49+ syn keyword rubyExceptionMacro rescue_from retry_on discard_on
5050 syn keyword rubyCallback before_enqueue around_enqueue after_enqueue before_perform around_perform after_perform
5151endif
5252
@@ -89,11 +89,12 @@ if s:path =~# '/app/controllers/.*\.rb$'
8989 syn keyword rubyResponse render head redirect_to redirect_back respond_with send_data send_file
9090endif
9191
92+ let b: rails_path = s: path
9293if s: path = ~# ' /app/controllers/.*\.rb$\|/app/mailers/.*\.rb$\|/app/models/.*_mailer\.rb$'
9394 syn keyword rubyHelper render_to_string
9495 syn keyword rubyCallback before_action append_before_action prepend_before_action after_action append_after_action prepend_after_action around_action append_around_action prepend_around_action skip_before_action skip_after_action skip_action
9596 syn keyword rubyMacro helper helper_attr helper_method layout
96- syn keyword rubyExceptionHandler rescue_from
97+ syn keyword rubyExceptionMacro rescue_from
9798endif
9899
99100if s: path = ~# ' /app/mailers/.*\.rb$\|/app/models/.*_mailer\.rb$'
You can’t perform that action at this time.
0 commit comments