Skip to content

Commit e233f92

Browse files
committed
Separate include from require
1 parent 35fca98 commit e233f92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

syntax/ruby.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,11 @@ if !exists("ruby_no_special_methods")
438438
syn match rubyControl "\<\%(exit!\|\%(abort\|at_exit\|exit\|fork\|loop\|trap\)\>[?!]\@!\)"
439439
syn keyword rubyEval eval class_eval instance_eval module_eval
440440
syn keyword rubyException raise fail catch throw
441-
" false positive with 'include?'
442-
syn match rubyInclude "\<include\>[?!]\@!"
443-
syn keyword rubyInclude autoload extend load prepend refine require require_relative using
441+
syn keyword rubyInclude autoload load require require_relative
444442
syn keyword rubyKeyword callcc caller lambda proc
443+
" false positive with 'include?'
444+
syn match rubyMacro "\<include\>[?!]\@!"
445+
syn keyword rubyMacro extend prepend refine using
445446
syn keyword rubyMacro alias_method define_method define_singleton_method remove_method undef_method
446447
endif
447448

0 commit comments

Comments
 (0)