Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Filename highlighter: set Highlight_filename()

  • Loading branch information...
commit 6f2cfeaa86e24bb3faa4b204f0a8ea6b3bdb5e1b 1 parent ba08ecf
@tomtom authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 autoload/tlib/World.vim
View
11 autoload/tlib/World.vim
@@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-05-01.
" @Last Change: 2012-09-25.
-" @Revision: 0.1.1177
+" @Revision: 0.1.1178
" :filedoc:
" A prototype used by |tlib#input#List|.
@@ -140,13 +140,12 @@ else
hi def link TLibMarker Special
hi def link TLibDir Directory
hi def link TLibFilename NonText
+ function! self.Highlighter(rx) dict "{{{3
+ let rx = '/\c\%>'. (1 + self.width_filename) .'c \(|\|\[[^]]*\]\) .\{-}\zs'. escape(a:rx, '/') .'/'
+ exec 'match' self.matcher.highlight rx
+ endf
endf
- " :nodoc:
- function! s:prototype.Highlighter(rx) dict "{{{3
- let rx = '/\c\%>'. (1 + self.width_filename) .'c \(|\|\[[^]]*\]\) .\{-}\zs'. escape(a:rx, '/') .'/'
- exec 'match' self.matcher.highlight rx
- endf
" :nodoc:
function! s:prototype.FormatFilename(file) dict "{{{3
Please sign in to comment.
Something went wrong with that request. Please try again.