nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 6fe967b3b357c50c74ca25a3840a66b705593bce
parent 8d005db94f8d1a214d172aeb1008d016c3d201e2
Author: Kristijan Husak <husakkristijan@gmail.com>
Date:   Mon,  5 Nov 2018 16:12:07 +0100

Allow highlighting more than one flag. (#908)


Diffstat:
Msyntax/nerdtree.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/syntax/nerdtree.vim b/syntax/nerdtree.vim
@@ -33,8 +33,8 @@ exec 'syn match NERDTreeFile  #^[^"\.'.s:dirArrows.'] *[^'.s:dirArrows.']*# cont
 "highlighting for readonly files
 exec 'syn match NERDTreeRO # *\zs.*\ze \['.g:NERDTreeGlyphReadOnly.'\]# contains=NERDTreeIgnore,NERDTreeBookmark,NERDTreeFile'
 
-syn match NERDTreeFlags #^ *\zs\[.\]# containedin=NERDTreeFile,NERDTreeExecFile
-syn match NERDTreeFlags #\[.\]# containedin=NERDTreeDir
+syn match NERDTreeFlags #^ *\zs\[[^\]]*\]# containedin=NERDTreeFile,NERDTreeExecFile
+syn match NERDTreeFlags #\[[^\]]*\]# containedin=NERDTreeDir
 
 "highlighing to conceal the delimiter around the file/dir name
 if has("conceal")