Skip to content

Commit dca5e81

Browse files
committed
Add =begin/=end pair to matchit
1 parent 5da839c commit dca5e81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ftplugin/ruby.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ if exists("loaded_matchit") && !exists("b:match_words")
2323
let b:match_ignorecase = 0
2424

2525
let b:match_words =
26-
\ '\<\%(if\|unless\|case\|while\|until\|for\|do\|class\|module\|def\|begin\)\>=\@!' .
26+
\ '\<\%(if\|unless\|case\|while\|until\|for\|do\|class\|module\|def\|=\@<!begin\)\>=\@!' .
2727
\ ':' .
2828
\ '\<\%(else\|elsif\|ensure\|when\|rescue\|break\|redo\|next\|retry\)\>' .
2929
\ ':' .
30-
\ '\%(^\|[^.\:@$]\)\@<=\<end\:\@!\>' .
30+
\ '\%(^\|[^.\:@$=]\)\@<=\<end\:\@!\>' .
31+
\ ',^=begin\>:^=end\>,' .
3132
\ ',{:},\[:\],(:)'
3233

3334
let b:match_skip =

0 commit comments

Comments
 (0)