Skip to content

Commit 37899ea

Browse files
committed
Support type matching when 'isk' includes hyphen
1 parent efdae41 commit 37899ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ endfunction
743743

744744
function! s:match_type(type,...)
745745
if a:0
746-
return !empty(filter(copy(a:000),'a:type =~# "^".v:val."\\>"'))
746+
return !empty(filter(copy(a:000),'a:type =~# "^".v:val."\\%(-\\|$\\)"'))
747747
else
748748
return a:type
749749
endif

0 commit comments

Comments
 (0)