commit e41dd019d91fb8a28da31fdeb94be61ed0e93aba
parent 2388af7754f7c01af01cd57e98bbeaaad4212484
Author: Phil Runninger <prunninger@vhtcx.com>
Date: Wed, 5 Feb 2020 15:09:24 -0500
Reorder syntax statements to fix highlighting.
Diffstat:
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/syntax/nerdtree.vim b/syntax/nerdtree.vim
@@ -19,6 +19,15 @@ syn match NERDTreeLinkTarget #->.*# containedin=NERDTreeDir,NERDTreeFile
syn match NERDTreeLinkFile #.* ->#me=e-3 containedin=NERDTreeFile
syn match NERDTreeLinkDir #.*/ ->#me=e-3 containedin=NERDTreeDir
+"highlighting to conceal the delimiter around the file/dir name
+if has('conceal')
+ exec 'syn match NERDTreeNodeDelimiters #\%d' . char2nr(g:NERDTreeNodeDelimiter) . '# conceal containedin=ALL'
+ setlocal conceallevel=3 concealcursor=nvic
+else
+ exec 'syn match NERDTreeNodeDelimiters #\%d' . char2nr(g:NERDTreeNodeDelimiter) . '# containedin=ALL'
+ hi! link NERDTreeNodeDelimiters Ignore
+endif
+
"highlighing for directory nodes and file nodes
syn match NERDTreeDirSlash #/# containedin=NERDTreeDir
@@ -40,15 +49,6 @@ exec 'syn match NERDTreeRO #.*'.g:NERDTreeNodeDelimiter.'\zs.*\ze'.g:NERDTreeNod
exec 'syn match NERDTreeFlags #\[[^\]]*\]\ze'.g:NERDTreeNodeDelimiter.'# containedin=NERDTreeFile,NERDTreeExecFile,NERDTreeDir'
-"highlighing to conceal the delimiter around the file/dir name
-if has('conceal')
- exec 'syn match NERDTreeNodeDelimiters #\%d' . char2nr(g:NERDTreeNodeDelimiter) . '# conceal containedin=ALL'
- setlocal conceallevel=3 concealcursor=nvic
-else
- exec 'syn match NERDTreeNodeDelimiters #\%d' . char2nr(g:NERDTreeNodeDelimiter) . '# containedin=ALL'
- hi! link NERDTreeNodeDelimiters Ignore
-endif
-
syn match NERDTreeCWD #^[</].*$#
"highlighting for bookmarks