FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Rename rubyExceptionHandler1 -> 2 for consistency's sake · vim-ruby/vim-ruby@d530625 · GitHub

Repository navigation

Commit d530625

Browse files
committed
Rename rubyExceptionHandler1 -> 2 for consistency's sake
1 parent eba5233 commit d530625

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎syntax/ruby.vim‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
389389
syn match rubyConditional "\<\%(then\|else\|elsif\)\>" contained containedin=rubyConditionalExpression
390390

391391
syn match rubyExceptionHandler "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>" contained containedin=rubyBlockExpression,rubyDoBlock
392-
syn match rubyExceptionHandler1 "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>" contained containedin=rubyModuleBlock,rubyClassBlock,rubyMethodBlock
393-
syn cluster rubyExceptionHandler contains=rubyExceptionHandler,rubyExceptionHandler1
392+
syn match rubyExceptionHandler2 "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>" contained containedin=rubyModuleBlock,rubyClassBlock,rubyMethodBlock
393+
syn cluster rubyExceptionHandler contains=rubyExceptionHandler,rubyExceptionHandler2
394394

395395
" statements with optional 'do'
396396
syn region rubyOptionalDoLine matchgroup=rubyRepeat start="\<for\>" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+=-]\|\%(\<\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\@<![!?]\)\s*\)\@<=\<\%(until\|while\)\>" matchgroup=rubyOptionalDo end="\<do\>" end="\ze\%(;\|$\)" oneline contains=ALLBUT,@rubyNotTop
@@ -471,7 +471,7 @@ SynFold '__END__' syn region rubyData matchgroup=rubyDataDirective start="^__END
471471
" Default Highlighting {{{1
472472
hi def link rubyClass rubyDefine
473473
hi def link rubyModule rubyDefine
474-
hi def link rubyExceptionHandler1 rubyDefine
474+
hi def link rubyExceptionHandler2 rubyDefine
475475
hi def link rubyDefine Define
476476
hi def link rubyAccess rubyMacro
477477
hi def link rubyAttribute rubyMacro

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL