@@ -37,21 +37,6 @@ if exists("ruby_operators")
3737 syn region rubyBracketOperator matchgroup =rubyOperator start =" \% (\w [?!]\=\| []})]\)\@ <=\[\s *" end =" \s *]" contains =ALLBUT,@rubyNotTop
3838endif
3939
40- " Special Methods
41- if ! exists (" ruby_no_special_methods" )
42- syn keyword rubyAccess public protected private module_function
43- " attr is a common variable name
44- syn match rubyAttribute " \% (\% (^\| ;\)\s *\)\@ <=attr\>\(\s *[.=]\)\@ !"
45- syn keyword rubyAttribute attr_accessor attr_reader attr_writer
46- syn match rubyControl " \<\% (exit!\|\% (abort\| at_exit\| exit\| fork\| loop\| trap\)\> [?!]\@ !\) "
47- syn keyword rubyEval eval class_eval instance_eval module_eval
48- syn keyword rubyException raise fail catch throw
49- " false positive with 'include?'
50- syn match rubyInclude " \< include\> [?!]\@ !"
51- syn keyword rubyInclude autoload extend load require
52- syn keyword rubyKeyword callcc caller lambda proc
53- endif
54-
5540" Expression Substitution and Backslash Notation
5641syn match rubyStringEscape " \\\\\|\\ [abefnrstv]\|\\\o\{ 1,3}\|\\ x\x\{ 1,2}" contained display
5742syn match rubyStringEscape " \% (\\ M-\\ C-\|\\ C-\\ M-\|\\ M-\\ c\|\\ c\\ M-\|\\ c\|\\ C-\|\\ M-\)\% (\\\o\{ 1,3}\|\\ x\x\{ 1,2}\|\\\=\S\) " contained display
@@ -266,6 +251,21 @@ else
266251 syn match rubyKeyword " \<\% (alias\| undef\)\> [?!]\@ !"
267252endif
268253
254+ " Special Methods
255+ if ! exists (" ruby_no_special_methods" )
256+ syn keyword rubyAccess public protected private module_function
257+ " attr is a common variable name
258+ syn match rubyAttribute " \% (\% (^\| ;\)\s *\)\@ <=attr\>\(\s *[.=]\)\@ !"
259+ syn keyword rubyAttribute attr_accessor attr_reader attr_writer
260+ syn match rubyControl " \<\% (exit!\|\% (abort\| at_exit\| exit\| fork\| loop\| trap\)\> [?!]\@ !\) "
261+ syn keyword rubyEval eval class_eval instance_eval module_eval
262+ syn keyword rubyException raise fail catch throw
263+ " false positive with 'include?'
264+ syn match rubyInclude " \< include\> [?!]\@ !"
265+ syn keyword rubyInclude autoload extend load require
266+ syn keyword rubyKeyword callcc caller lambda proc
267+ endif
268+
269269" Comments and Documentation
270270syn match rubySharpBang " \% ^#!.*" display
271271syn keyword rubyTodo FIXME NOTE TODO OPTIMIZE XXX contained
0 commit comments