diff --git a/syntax/nerdtree.vim b/syntax/nerdtree.vim index 68ca384..24e78db 100644 --- 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")