commit fc053917d811b34412dabb5483f62dd07fab53eb
parent 201df0a782b8cf42901e62a36450671076a2e520
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sat, 28 Jun 2008 21:35:09 +1200
add highlighting for bookmarks gui
Diffstat:
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2436,13 +2436,9 @@ function! s:SetupSyntaxHighlighting()
syn match treeHelpCommand #" :.\{-}\>#hs=s+3
syn match treeHelp #^".*# contains=treeHelpKey,treeHelpTitle,treeFlag,treeToggleOff,treeToggleOn,treeHelpCommand
-
"highlighting for readonly files
syn match treeRO #[\/0-9a-zA-Z]\+.*\[RO\]# contains=treeFlag,treeBookmark
- "highlighting for bookmarks
- syn match treeBookmark # {.*}#hs=s+1
-
"highlighting for sym links
syn match treeLink #[^-| `].* -> # contains=treeBookmark,treeOpenable,treeClosable,treeDirSlash
@@ -2454,6 +2450,15 @@ function! s:SetupSyntaxHighlighting()
syn match treeFile #`-.*# contains=treeLink,treePart,treeRO,treePartFile,treeBookmark,treeExecFile
syn match treeCWD #^/.*$#
+ "highlighting for bookmarks
+ syn match treeBookmark # {.*}#hs=s+1
+
+ "highlighting for the bookmarks display
+ syn match treeBookmarksLeader #^>#
+ syn match treeBookmarksHeader #^>-\+Bookmarks-\+# contains=treeBookmarksLeader
+ syn match treeBookmarkName #^>[a-zA-Z_]\{-} #he=e-1 contains=treeBookmarksLeader
+ syn match treeBookmark #^>.*$# contains=treeBookmarksLeader,treeBookmarkName
+
if g:NERDChristmasTree
hi def link treePart Special
hi def link treePartFile Type
@@ -2468,6 +2473,11 @@ function! s:SetupSyntaxHighlighting()
hi def link treeClosable Title
endif
+ hi def link treeBookmarksHeader macro
+ hi def link treeBookmarksLeader ignore
+ hi def link treeBookmarkName Identifier
+ hi def link treeBookmark Statement
+
hi def link treeHelp String
hi def link treeHelpKey Identifier
hi def link treeHelpCommand Identifier