Skip to content

Commit

Permalink
Ruby: fix nested type name
Browse files Browse the repository at this point in the history
ex.
  class Module1::A

before:
  Module1 : class

after:
  Module1::A : class
  • Loading branch information
todesking committed Aug 2, 2012
1 parent 962aaa6 commit 0e60ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/unite/sources/outline/defaults/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function! s:outline_info.create_heading(which, heading_line, matched_line, conte
" Eigen-class
else
" Module, Class
let word = matchstr(word, '^\s*\%(module\|class\)\s\+\zs\h\w*') . ' : ' . keyword
let word = matchstr(word, '^\s*\%(module\|class\)\s\+\zs\h\%(\w\|:\)*') . ' : ' . keyword
endif
elseif keyword == 'protected' || keyword == 'private'
" Accessibility
Expand Down

0 comments on commit 0e60ef4

Please sign in to comment.