FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Include autoload in 'include' · sofaking/vim-ruby@b914aed · GitHub

Commit b914aed

Browse files
committed
Include autoload in 'include'
1 parent 91f27a8 commit b914aed

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
@@ -43,7 +43,7 @@ endif
4343

4444
setlocal formatoptions-=t formatoptions+=croql
4545

46-
setlocal include=^\\s*\\<\\(load\\\|\w*require\\)\\>
46+
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)
4747
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
4848
setlocal suffixesadd=.rb
4949

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL