@@ -365,7 +365,7 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
365365 SynFold ' begin' syn region rubyBlockExpression matchgroup= rubyControl start = " \< begin\> " end = " \< end\> " contains= ALLBUT ,@r ubyNotTop
366366 SynFold ' case' syn region rubyCaseExpression matchgroup= rubyConditional start = " \< case\> " end = " \< end\> " contains= ALLBUT ,@r ubyNotTop
367367
368- SynFold ' if' syn region rubyConditionalExpression matchgroup= rubyConditional start = " \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\< then\s\|\% (\< [_[:lower:]][_[:alnum:]] *\)\@ <![?!]\)\s *\)\@ <=\% (if\| unless\)\> " end = " \% (\% (\% (\.\@ 1<!\.\)\| ::\)\s *\)\@ <!\< end\> " contains= ALLBUT ,@r ubyNotTop
368+ SynFold ' if' syn region rubyConditionalExpression matchgroup= rubyConditional start = " \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\< then\s\|\% (\<\h\w *\)\@ <![?!]\)\s *\)\@ <=\% (if\| unless\)\> " end = " \% (\% (\% (\.\@ 1<!\.\)\| ::\)\s *\)\@ <!\< end\> " contains= ALLBUT ,@r ubyNotTop
369369
370370 syn match rubyConditional " \<\% (then\| else\| when\)\> [?!]\@ !" contained containedin =rubyCaseExpression
371371 syn match rubyConditional " \<\% (then\| else\| elsif\)\> [?!]\@ !" contained containedin =rubyConditionalExpression
@@ -375,9 +375,9 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
375375 syn cluster rubyExceptionHandler contains =rubyExceptionHandler,rubyExceptionHandler1
376376
377377 " statements with optional 'do'
378- syn region rubyOptionalDoLine matchgroup =rubyRepeat start =" \< for\> [?!]\@ !" start =" \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\% (\< [_[:lower:]][_[:alnum:]] *\)\@ <![!?]\)\s *\)\@ <=\<\% (until\| while\)\> " matchgroup=rubyOptionalDo end="\< do\> " end="\z e\% (;\| $\) " oneline contains=ALLBUT,@rubyNotTop
378+ syn region rubyOptionalDoLine matchgroup =rubyRepeat start =" \< for\> [?!]\@ !" start =" \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\% (\<\h\w *\)\@ <![!?]\)\s *\)\@ <=\<\% (until\| while\)\> " matchgroup=rubyOptionalDo end="\< do\> " end="\z e\% (;\| $\) " oneline contains=ALLBUT,@rubyNotTop
379379
380- SynFold ' for' syn region rubyRepeatExpression start = " \< for\> [?!]\@ !" start = " \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\% (\< [_[:lower:]][_[:alnum:]] *\)\@ <![!?]\)\s *\)\@ <=\<\% (until\| while\)\> " matchgroup= rubyRepeat end = " \< end\> " contains= ALLBUT ,@r ubyNotTop nextgroup= rubyOptionalDoLine
380+ SynFold ' for' syn region rubyRepeatExpression start = " \< for\> [?!]\@ !" start = " \% (\% (^\|\.\.\.\=\| [{:,;([<>~\* /%&^|+=-]\|\% (\<\h\w *\)\@ <![!?]\)\s *\)\@ <=\<\% (until\| while\)\> " matchgroup= rubyRepeat end = " \< end\> " contains= ALLBUT ,@r ubyNotTop nextgroup= rubyOptionalDoLine
381381
382382 if ! exists (" ruby_minlines" )
383383 let ruby_minlines = 500
0 commit comments