Permalink
Browse files

Change rubyMethodExceptional "containedin" to rubyMethodBlock.

  • Loading branch information...
1 parent 034b19b commit 0cca8a5b34b5b71020beb6ed446ba2ca4c9000d9 @Milly committed Sep 15, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 syntax/ruby.vim
View
@@ -229,7 +229,7 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
syn match rubyConditional "\<\%(then\|else\|elsif\)\>[?!]\@!" contained containedin=rubyConditionalExpression
syn match rubyExceptional "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>[?!]\@!" contained containedin=rubyBlockExpression
- syn match rubyMethodExceptional "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>[?!]\@!" contained containedin=rubyMethod
+ syn match rubyMethodExceptional "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>[?!]\@!" contained containedin=rubyMethodBlock
" statements with optional 'do'
syn region rubyOptionalDoLine matchgroup=rubyRepeat start="\<for\>[?!]\@!" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![!=?]\)\s*\)\@<=\<\%(until\|while\)\>" matchgroup=rubyOptionalDo end="\%(\<do\>\)" end="\ze\%(;\|$\)" oneline contains=ALLBUT,@rubyNotTop

0 comments on commit 0cca8a5

Please sign in to comment.