Skip to content

Commit 01657cc

Browse files
committed
More complicated matchit end-pattern
Taken directly from the indent script, with some escaping for the ":".
1 parent 58d5306 commit 01657cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ftplugin/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if exists("loaded_matchit") && !exists("b:match_words")
2828
\ ':' .
2929
\ '\<\%(else\|elsif\|ensure\|when\|rescue\|break\|redo\|next\|retry\)\>' .
3030
\ ':' .
31-
\ '\<end\>' .
31+
\ '\%(^\|[^.\:@$]\)\@<=\<end\:\@!\>' .
3232
\ ',{:},\[:\],(:)'
3333

3434
let b:match_skip =

0 commit comments

Comments
 (0)