| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -389,8 +389,8 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive") | |||
| 389 | 389 | syn match rubyConditional "\<\%(then\|else\|elsif\)\>" contained containedin=rubyConditionalExpression | |
| 390 | 390 | ||
| 391 | 391 | 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 | ||
| 394 | 394 | ||
| 395 | 395 | " statements with optional 'do' | |
| 396 | 396 | 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 | |||
| 471 | 471 | " Default Highlighting {{{1 | |
| 472 | 472 | hi def link rubyClass rubyDefine | |
| 473 | 473 | hi def link rubyModule rubyDefine | |
| 474 | - hi def link rubyExceptionHandler1 rubyDefine | ||
| 474 | + hi def link rubyExceptionHandler2 rubyDefine | ||
| 475 | 475 | hi def link rubyDefine Define | |
| 476 | 476 | hi def link rubyAccess rubyMacro | |
| 477 | 477 | hi def link rubyAttribute rubyMacro | |
| Back | FazBrowse Home | New Git URL |
0 commit comments